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: 2.7.1
Syntax
public class City : NamedEntity

The City type exposes the following members.

Constructors
  NameDescription
Public methodCity
Constructor
Public methodCity(NullableInt32, NullableInt32, IDictionaryString, String, IEnumerableString)
Constructor
Public methodCity(NullableInt32, NullableInt64, IDictionaryString, String, IEnumerableString)
Constructor
Top
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
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(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