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.3.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.
[read-only]
Names Dictionary<string, string> . A Dictionary`2 from locale codes to the name in that locale.

Protected Properties

Locales List<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

protected 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.3.0.0

NamedEntity Constructor

Constructor

Syntax

protected NamedEntity (Nullable<int> geoNameId, Dictionary<string, string> names, List<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.3.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.3.0.0

Locales Property

Gets or sets the locales specified by the user.

Syntax

[Newtonsoft.Json.JsonIgnore]
protected List<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.3.0.0

Name Property

The name of the city based on the locales list passed to the MaxMind.GeoIP2.WebServiceClient constructor.

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.3.0.0

Names Property

A Dictionary`2 from locale codes to the name in that locale.

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.3.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.3.0.0