Click or drag to resize
DatabaseReaderTryCountry Method (IPAddress, CountryResponse)
Tries to lookup a CountryResponse for the specified IP address.

Namespace: MaxMind.GeoIP2
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll) Version: 2.7.1
Syntax
public bool TryCountry(
	IPAddress ipAddress,
	out CountryResponse response
)

Parameters

ipAddress
Type: System.NetIPAddress
The IP address.
response
Type: MaxMind.GeoIP2.ResponsesCountryResponse
The CountryResponse.

Return Value

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

Implements

IGeoIP2DatabaseReaderTryCountry(IPAddress, CountryResponse)
See Also