Class GeolocationProvider
Inheritance
System.Object
GeolocationProvider
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: EPiServer.ApplicationModules.dll
Version: 11.20.7
Syntax
[Obsolete("This GeolocationProvider only supports the now obsolete MaxMind GeoLite database. Install the EPiServer.Personalization.MaxMindGeolocation NuGet package for GeoLite2 database support.")]
public class GeolocationProvider : GeolocationProviderBase, IGeolocationProvider
Constructors
GeolocationProvider()
Declaration
public GeolocationProvider()
GeolocationProvider(IPhysicalPathResolver, MaxMindGeolocationOptions)
Declaration
public GeolocationProvider(IPhysicalPathResolver physicalPathResolver, MaxMindGeolocationOptions options)
Parameters
Properties
Capabilities
Declaration
public override Capabilities Capabilities { get; }
Property Value
Overrides
Methods
GetContinentCodes()
Declaration
public override IEnumerable<string> GetContinentCodes()
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
Overrides
GetCountryCodes(String)
Declaration
public override IEnumerable<string> GetCountryCodes(string continentCode)
Parameters
Type |
Name |
Description |
System.String |
continentCode |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
Overrides
GetRegions(String)
Declaration
public override IEnumerable<string> GetRegions(string countryCode)
Parameters
Type |
Name |
Description |
System.String |
countryCode |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
Overrides
Initialize(String)
Declaration
public void Initialize(string databasePath)
Parameters
Type |
Name |
Description |
System.String |
databasePath |
|
Initialize(String, NameValueCollection)
Declaration
public override void Initialize(string name, NameValueCollection config)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Collections.Specialized.NameValueCollection |
config |
|
Overrides
Lookup(IPAddress)
Declaration
public override IGeolocationResult Lookup(IPAddress address)
Parameters
Type |
Name |
Description |
System.Net.IPAddress |
address |
|
Returns
Overrides
Implements
Extension Methods