MaxMind.GeoIP2 : MaxMind.GeoIP2.Model Namespace

Subdivision Class

Contains data for the subdivisions associated with an IP address. Do not use any of the subdivision names as a database or dictionary key. Use the or instead.

Syntax

public class Subdivision : NamedEntity

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Model
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0

Members

See Also: Inherited members from NamedEntity.

Public Constructors

Public Properties

Confidence Nullable<int> . This is a value from 0-100 indicating MaxMind's confidence that the subdivision is correct. This value is only set when using the Insights web service or the Enterprise database.
[read-only]
GeoNameId Nullable<int> . The GeoName ID for the city. (Inherited from NamedEntity.)
IsoCode string . This is a string up to three characters long contain the subdivision portion of the code .
[read-only]
Name string . The name of the city based on the locales list passed to the MaxMind.GeoIP2.WebServiceClient constructor. Don't use any of these names as a database or dictionary key. Use the or relevant code instead. (Inherited from NamedEntity.)
[read-only]
Names Dictionary<string, string> . A Dictionary`2 from locale codes to the name in that locale. Don't use any of these names as a database or dictionary key. Use the or relevant code instead. (Inherited from NamedEntity.)

Protected Properties

Locales IEnumerable<string> . Gets or sets the locales specified by the user. (Inherited from NamedEntity.)

Public Methods

override
ToString () : string
Returns a string that represents this instance. (Inherited from NamedEntity.)

Member Details

Subdivision Constructor

Constructor

Syntax

public Subdivision ()

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Model
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0

Subdivision Constructor

Constructor

Syntax

public Subdivision (Nullable<int> confidence, Nullable<int> geoNameId, string isoCode, IDictionary<string, string> names, IEnumerable<string> locales)

Parameters

confidence
Documentation for this section has not yet been entered.
geoNameId
Documentation for this section has not yet been entered.
isoCode
Documentation for this section has not yet been entered.
names
Documentation for this section has not yet been entered.
locales
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Model
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0

Subdivision Constructor

Constructor

Syntax

[MaxMind.Db.Constructor]
public Subdivision (Nullable<int> confidence, [MaxMind.Db.Parameter("geoname_id", false)] Nullable<long> geoNameId, [MaxMind.Db.Parameter("iso_code", false)] string isoCode, IDictionary<string, string> names, IEnumerable<string> locales)

Parameters

confidence
Documentation for this section has not yet been entered.
geoNameId
Documentation for this section has not yet been entered.
isoCode
Documentation for this section has not yet been entered.
names
Documentation for this section has not yet been entered.
locales
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Model
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0

Confidence Property

This is a value from 0-100 indicating MaxMind's confidence that the subdivision is correct. This value is only set when using the Insights web service or the Enterprise database.

Syntax

[Newtonsoft.Json.JsonProperty("confidence")]
public Nullable<int> Confidence { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Model
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0

IsoCode Property

This is a string up to three characters long contain the subdivision portion of the code .

Syntax

[Newtonsoft.Json.JsonProperty("iso_code")]
public string IsoCode { get; set; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Model
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0