MaxMind.GeoIP2 : MaxMind.GeoIP2.Model Namespace

NamedEntity Class

Abstract class for records with name maps.

Syntax

public abstract class 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 object.

Protected Constructors

Public Properties

[read-only]
GeoNameId Nullable<int> . The GeoName ID for the city.
[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.
[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.

Protected Properties

Locales IEnumerable<string> . Gets or sets the locales specified by the user.

Public Methods

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

Member Details

NamedEntity Constructor

Constructor

Syntax

[MaxMind.Db.Constructor]
protected NamedEntity (Nullable<int> geoNameId, IDictionary<string, string> names, IEnumerable<string> locales)

Parameters

geoNameId
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

GeoNameId Property

The GeoName ID for the city.

Syntax

[Newtonsoft.Json.JsonProperty("geoname_id")]
public Nullable<int> GeoNameId { get; }

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

Locales Property

Gets or sets the locales specified by the user.

Syntax

[Newtonsoft.Json.JsonIgnore]
protected IEnumerable<string> Locales { 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

Name Property

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.

Syntax

[Newtonsoft.Json.JsonIgnore]
public string Name { get; }

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

Names Property

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.

Syntax

[Newtonsoft.Json.JsonIgnore]
public Dictionary<string, string> Names { get; }

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

ToString Method

Returns a string that represents this instance.

Syntax

public override string ToString ()

Returns

A string that represents this instance.

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