This class provides a model for the data returned by GeoIP2 Precision: City and GeoIP2 City. The only difference between the City and Insights response classes is which fields in each record may be populated. GeoIP2 Web Services
See Also: Inherited members from AbstractCityResponse.
[read-only] | City | MaxMind.GeoIP2.Model.City . Gets the city for the requested IP address. (Inherited from AbstractCityResponse.) |
[read-only] | Continent | MaxMind.GeoIP2.Model.Continent . Gets the continent for the requested IP address. (Inherited from AbstractCountryResponse.) |
[read-only] | Country | MaxMind.GeoIP2.Model.Country . Gets the country for the requested IP address. This object represents the country where MaxMind believes the end user is located (Inherited from AbstractCountryResponse.) |
[read-only] | Location | MaxMind.GeoIP2.Model.Location . Gets the location for the requested IP address. (Inherited from AbstractCityResponse.) |
[read-only] | MaxMind | MaxMind.GeoIP2.Model.MaxMind . Gets the MaxMind record containing data related to your account (Inherited from AbstractCountryResponse.) |
[read-only] | MostSpecificSubdivision | MaxMind.GeoIP2.Model.Subdivision . An object representing the most specific subdivision returned. If the response did not contain any subdivisions, this method returns an empty MaxMind.GeoIP2.Model.Subdivision object. (Inherited from AbstractCityResponse.) |
[read-only] | Postal | MaxMind.GeoIP2.Model.Postal . Gets the postal object for the requested IP address. (Inherited from AbstractCityResponse.) |
[read-only] | RegisteredCountry | MaxMind.GeoIP2.Model.Country . Registered country record for the requested IP address. This record represents the country where the ISP has registered a given IP block and may differ from the user's country. (Inherited from AbstractCountryResponse.) |
[read-only] | RepresentedCountry | MaxMind.GeoIP2.Model.RepresentedCountry . Represented country record for the requested IP address. The represented country is used for things like military bases or embassies. It is only present when the represented country differs from the country. (Inherited from AbstractCountryResponse.) |
[read-only] | Subdivisions | List<MaxMind.GeoIP2.Model.Subdivision> . An List`1 of MaxMind.GeoIP2.Model.Subdivision objects representing the country subdivisions for the requested IP address. The number and type of subdivisions varies by country, but a subdivision is typically a state, province, county, etc. Subdivisions are ordered from most general (largest) to most specific (smallest). If the response did not contain any subdivisions, this method returns an empty array. (Inherited from AbstractCityResponse.) |
[read-only] | Traits | MaxMind.GeoIP2.Model.Traits . Gets the traits for the requested IP address. (Inherited from AbstractCountryResponse.) |
override
|
ToString
()Returns a string that represents this instance. (Inherited from AbstractCityResponse.) |
|
override
|
ToString
()Returns a string that represents this instance. (Inherited from AbstractCountryResponse.) |
override
|
SetLocales
(IEnumerable<string>)Sets the locales on all the NamedEntity properties. (Inherited from AbstractCityResponse.) |
|
override
|
SetLocales
(IEnumerable<string>)Sets the locales on all the NamedEntity properties. (Inherited from AbstractCountryResponse.) |
|
|
SetLocales
(IEnumerable<string>)This is simplify the database API. Also, we may need to use the locales in the future. (Inherited from AbstractResponse.) |
ConstructorSyntax
public CityResponse ()Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: MaxMind.GeoIP2.Responses
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0
ConstructorSyntax
[MaxMind.Db.Constructor]
public CityResponse (MaxMind.GeoIP2.Model.City city, MaxMind.GeoIP2.Model.Continent continent, MaxMind.GeoIP2.Model.Country country, MaxMind.GeoIP2.Model.Location location, [MaxMind.Db.Parameter("maxmind", false)] MaxMind.GeoIP2.Model.MaxMind maxMind, MaxMind.GeoIP2.Model.Postal postal, [MaxMind.Db.Parameter("registered_country", false)] MaxMind.GeoIP2.Model.Country registeredCountry, [MaxMind.Db.Parameter("represented_country", false)] MaxMind.GeoIP2.Model.RepresentedCountry representedCountry, IEnumerable<MaxMind.GeoIP2.Model.Subdivision> subdivisions, [MaxMind.Db.Parameter("traits", true)] MaxMind.GeoIP2.Model.Traits traits)Parameters
- city
- Documentation for this section has not yet been entered.
- continent
- Documentation for this section has not yet been entered.
- country
- Documentation for this section has not yet been entered.
- location
- Documentation for this section has not yet been entered.
- maxMind
- Documentation for this section has not yet been entered.
- postal
- Documentation for this section has not yet been entered.
- registeredCountry
- Documentation for this section has not yet been entered.
- representedCountry
- Documentation for this section has not yet been entered.
- subdivisions
- Documentation for this section has not yet been entered.
- traits
- Documentation for this section has not yet been entered.
Remarks
Documentation for this section has not yet been entered.Requirements
Namespace: MaxMind.GeoIP2.Responses
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0