Click or drag to resize
GeoIPHelper Class
Provides IP address to GEO location conversion.
Inheritance Hierarchy
SystemObject
  CMS.BaseCoreMethods
    CMS.BaseAbstractHelper
      CMS.BaseAbstractHelperGeoIPHelper
        CMS.WebAnalyticsGeoIPHelper

Namespace: CMS.WebAnalytics
Assembly: CMS.WebAnalytics (in CMS.WebAnalytics.dll) Version: 8.2.23
Syntax
C#
public class GeoIPHelper : AbstractHelper<GeoIPHelper>

The GeoIPHelper type exposes the following members.

Constructors
  NameDescription
Public methodGeoIPHelper
Top
Methods
  NameDescription
Public methodStatic memberClearLookUpServices
Clears MaxMind GeoIP lookup services.
Public methodStatic memberGetCountryByIp
Finds country name by IP4 address.
Protected methodGetCountryByIpInternal
Finds country name by IP4 address.
Public methodStatic memberGetCountryIDByIp
Finds ID of country from CMS_Country table by IP4 address.
Protected methodGetCountryIDByIpInternal
Finds ID of country from CMS_Country table by IP4 address.
Public methodStatic memberGetCurrentGeoLocation
Returns geo location according to current IP (RequestContext.UserHostAddress).
Public methodStatic memberGetLocationByIp
Returns location object according to IP4 address.
Public methodGetLocationByIpInternal
Returns location object according to IP4 address.
Public methodStatic memberGetOrganizationByIp
Finds organization/company name by IP4 address.
Protected methodGetOrganizationByIpInternal
Finds organization/company name by IP4 address.
Public methodStatic memberGetStateByIp
Finds state code name by IP4 address.
Protected methodGetStateByIpInternal
Finds state code name by IP4 address.
Public methodStatic memberGetStateIDByIp
Finds ID of state from CMS_State table by IP4 address.
Protected methodGetStateIDByIpInternal
Finds ID of state from CMS_State table by IP4 address.
Public methodStatic memberInitIPToLocationService
Initializes the IP to location service with options.
Public methodStatic memberInitIPToOrgService
Initializes the IP to organization service with options.
Public methodSetAsDefaultHelper
Sets this object as the default helper
(Inherited from AbstractHelperHelperType.)
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
See Also