Click or drag to resize

DatabaseReaderTryCity Method (IPAddress, CityResponse)

Tries to lookup a CityResponse for the specified IP address.

Namespace:  MaxMind.GeoIP2
Assembly:  MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll) Version: 3.0.0
Syntax
public bool TryCity(
	IPAddress ipAddress,
	out CityResponse response
)

Parameters

ipAddress
Type: System.NetIPAddress
The IP address.
response
Type: MaxMind.GeoIP2.ResponsesCityResponse
The CityResponse.

Return Value

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

Implements

IGeoIP2DatabaseReaderTryCity(IPAddress, CityResponse)
See Also