Class GeolocationProviderBase
Inheritance
System.Object
GeolocationProviderBase
Namespace: EPiServer.Personalization
Assembly: EPiServer.Framework.dll
Version: 8.11.0Syntax
public abstract class GeolocationProviderBase : ProviderBase
Constructors
GeolocationProviderBase()
Declaration
protected GeolocationProviderBase()
Properties
Capabilities
Get the capabilities of this provider
Declaration
public abstract Capabilities Capabilities { get; }
Property Value
Type | Description |
---|---|
Capabilities |
Methods
GetContinentCodes()
Get the list of two-letter continent codes known to this provider
Declaration
public abstract IEnumerable<string> GetContinentCodes()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
GetCountryCodes(String)
Get the list of two-letter country codes known to this provider
Declaration
public abstract IEnumerable<string> GetCountryCodes(string continentCode)
Parameters
Type | Name | Description |
---|---|---|
System.String | continentCode | Two-letter continent code to filter the list of countries on (may be null) |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
GetRegions(String)
Get the list of regions for a country known to this provider
Declaration
public abstract IEnumerable<string> GetRegions(string countryCode)
Parameters
Type | Name | Description |
---|---|---|
System.String | countryCode | Two-letter country code to filter the list of regions on (may be null) |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> |
Lookup(IPAddress)
Look up IP address in geolocation database
Declaration
public abstract IGeolocationResult Lookup(IPAddress address)
Parameters
Type | Name | Description |
---|---|---|
System.Net.IPAddress | address | IP address to look up |
Returns
Type | Description |
---|---|
IGeolocationResult | Geolocation data for the IP address (can be null) |