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
)
Public Function TryCity (
ipAddress As IPAddress,
<OutAttribute> ByRef response As CityResponse
) As Boolean
public:
virtual bool TryCity(
IPAddress^ ipAddress,
[OutAttribute] CityResponse^% response
) sealed
abstract TryCity :
ipAddress : IPAddress *
response : CityResponse byref -> bool
override TryCity :
ipAddress : IPAddress *
response : CityResponse byref -> bool
Parameters
- ipAddress
- Type: System.NetIPAddress
The IP address. - response
- Type: MaxMind.GeoIP2.ResponsesCityResponse
The CityResponse.
Return Value
Type:
BooleanA
Boolean describing whether the IP address was found.
Implements
IGeoIP2DatabaseReaderTryCity(IPAddress, CityResponse)See Also