Class GeoEntity
Represents lookup result
Inheritance
System.Object
GeoEntity
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Web.GeoLookup
Assembly: Azos.Web.dll
Syntax
[SlimSerializationProhibited]
public class GeoEntity
Constructors
GeoEntity(IPAddress, IPSubnetBlock, Nullable<Location>)
Declaration
protected GeoEntity(IPAddress query, IPSubnetBlock block, Location? location)
Parameters
Type | Name | Description |
---|---|---|
System.Net.IPAddress | query | |
IPSubnetBlock | block | |
System.Nullable<Location> | location |
Fields
Block
Information about IP address block
Declaration
public readonly IPSubnetBlock Block
Field Value
Type | Description |
---|---|
IPSubnetBlock |
Location
Information about geo location
Declaration
public readonly Location? Location
Field Value
Type | Description |
---|---|
System.Nullable<Location> |
Query
Returns the address originally requested
Declaration
public readonly IPAddress Query
Field Value
Type | Description |
---|---|
System.Net.IPAddress |
Properties
CountryISOName
Declaration
public string CountryISOName { get; }
Property Value
Type | Description |
---|---|
System.String |
CountryName
Declaration
public string CountryName { get; }
Property Value
Type | Description |
---|---|
System.String |
LocalityName
Returns handy name of locality, i.e. "City, Country" if city is available
Declaration
public string LocalityName { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()