Click or drag to resize

City Class

City-level data associated with an IP address.
Inheritance Hierarchy

Namespace:  MaxMind.GeoIP2.Model
Assembly:  MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll) Version: 3.0.0
Syntax
public class City : NamedEntity

The City type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyConfidence
A value from 0-100 indicating MaxMind's confidence that the city is correct. This value is only set when using the Insights web service or the Enterprise database.
Public propertyGeoNameId
The GeoName ID for the city.
(Inherited from NamedEntity.)
Protected propertyLocales
Gets or sets the locales specified by the user.
(Inherited from NamedEntity.)
Public propertyName
The name of the city based on the locales list passed to the WebServiceClient constructor. Don't use any of these names as a database or dictionary key. Use the or relevant code instead.
(Inherited from NamedEntity.)
Public propertyNames
A DictionaryTKey, TValue 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.)
Top
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString
Returns a String that represents this instance.
(Inherited from NamedEntity.)
Top
Remarks
Do not use any of the city names as a database or dictionary key. Use the instead.
See Also