Class NetworkGeolocation
Class NetworkGeolocation. Represents a network geolocation determined from a GeoIP service.
Inheritance
System.Object
NetworkGeolocation
Namespace: VpnSDK.DTO
Assembly: cs.temp.dll.dll
Syntax
public class NetworkGeolocation
Properties
City
Gets the name of the current city.
Declaration
public string City { get; }
Property Value
Type | Description |
---|---|
System.String | The city. |
Country
Gets the name of the current country.
Declaration
public string Country { get; }
Property Value
Type | Description |
---|---|
System.String | The country. |
CountryCode
Gets the ISO Alpha-2 country code for the current Country.
Declaration
public string CountryCode { get; }
Property Value
Type | Description |
---|---|
System.String | The ISO Alpha-2 country code. |
IPAddress
Gets the current IP address.
Declaration
public IPAddress IPAddress { get; }
Property Value
Type | Description |
---|---|
IPAddress | The current IP address. |
Latitude
Gets the latitude.
Declaration
public decimal Latitude { get; }
Property Value
Type | Description |
---|---|
System.Decimal | The latitude. |
Longitude
Gets the longitude.
Declaration
public decimal Longitude { get; }
Property Value
Type | Description |
---|---|
System.Decimal | The longitude. |
Methods
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
Operators
Implicit(GeoIP to NetworkGeolocation)
Performs an implicit conversion to NetworkGeolocation.
Declaration
public static implicit operator NetworkGeolocation(GeoIP geoIp)
Parameters
Type | Name | Description |
---|---|---|
GeoIP | geoIp | The Zorg GeoIP. |
Returns
Type | Description |
---|---|
NetworkGeolocation | The result of the conversion. |