Click or drag to resize
IGeoIP2DatabaseReader.TryCity Method (String, CityResponse)
Tries to lookup a CityResponse for the specified IP address.

Namespace: MaxMind.GeoIP2
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll) Version: 2.7.1
Syntax
bool TryCity(
	string ipAddress,
	out CityResponse response
)

Parameters

ipAddress
Type: System.String
The IP address.
response
Type: MaxMind.GeoIP2.Responses.CityResponse
The CityResponse.

Return Value

Type: Boolean
A Boolean describing whether the IP address was found.
See Also