MaxMind.GeoIP2 : MaxMind.GeoIP2 Namespace

DatabaseReader Class

Instances of this class provide a reader for the GeoIP2 database format

Syntax

public class DatabaseReader : IGeoIP2Provider, IDisposable

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 0.3.2.0

Members

See Also: Inherited members from object.

Public Constructors

Public Methods

City (string) : MaxMind.GeoIP2.Responses.CityResponse
Returns an MaxMind.GeoIP2.Responses.CityResponse for the specified ip address.
CityIspOrg (string) : MaxMind.GeoIP2.Responses.CityIspOrgResponse
Returns an MaxMind.GeoIP2.Responses.CityIspOrgResponse for the specified ip address.
Country (string) : MaxMind.GeoIP2.Responses.CountryResponse
Returns an MaxMind.GeoIP2.Responses.CountryResponse for the specified ip address.
Dispose ()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Omni (string) : MaxMind.GeoIP2.Responses.OmniResponse
Returns an MaxMind.GeoIP2.Responses.OmniResponse for the specified ip address.

Member Details

DatabaseReader Constructor

Initializes a new instance of the MaxMind.GeoIP2.DatabaseReader class.

Syntax

public DatabaseReader (System.IO.Stream stream)

Parameters

stream
A stream of the MaxMind DB file.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 0.3.2.0

DatabaseReader Constructor

Initializes a new instance of the MaxMind.GeoIP2.DatabaseReader class.

Syntax

public DatabaseReader (System.IO.Stream stream, List<string> locales)

Parameters

stream
A stream of the MaxMind DB file.
locales
List of locale codes to use in name property from most preferred to least preferred.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 0.3.2.0

DatabaseReader Constructor

Initializes a new instance of the MaxMind.GeoIP2.DatabaseReader class.

Syntax

public DatabaseReader (string file, MaxMind.Db.FileAccessMode mode)

Parameters

file
The MaxMind DB file.
mode
The mode by which to access the DB file.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 0.3.2.0

DatabaseReader Constructor

Initializes a new instance of the MaxMind.GeoIP2.DatabaseReader class.

Syntax

public DatabaseReader (string file, List<string> locales, MaxMind.Db.FileAccessMode mode)

Parameters

file
The MaxMind DB file.
locales
List of locale codes to use in name property from most preferred to least preferred.
mode
The mode by which to access the DB file.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 0.3.2.0

City Method

Returns an MaxMind.GeoIP2.Responses.CityResponse for the specified ip address.

Syntax

Parameters

ipAddress
The ip address.

Returns

An MaxMind.GeoIP2.Responses.CityResponse

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 0.3.2.0

CityIspOrg Method

Returns an MaxMind.GeoIP2.Responses.CityIspOrgResponse for the specified ip address.

Syntax

Parameters

ipAddress
The ip address.

Returns

An MaxMind.GeoIP2.Responses.CityIspOrgResponse

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 0.3.2.0

Country Method

Returns an MaxMind.GeoIP2.Responses.CountryResponse for the specified ip address.

Syntax

Parameters

ipAddress
The ip address.

Returns

An MaxMind.GeoIP2.Responses.CountryResponse

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 0.3.2.0

Dispose Method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Syntax

public void Dispose ()

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 0.3.2.0

Omni Method

Returns an MaxMind.GeoIP2.Responses.OmniResponse for the specified ip address.

Syntax

Parameters

ipAddress
The ip address.

Returns

An MaxMind.GeoIP2.Responses.OmniResponse

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 0.3.2.0