IGeoIP2DatabaseReaderTryCity Method (String, 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
Syntaxbool TryCity(
	string ipAddress,
	out CityResponse response
)
Function TryCity ( 
	ipAddress As String,
	<OutAttribute> ByRef response As CityResponse
) As Boolean
bool TryCity(
	String^ ipAddress, 
	[OutAttribute] CityResponse^% response
)
abstract TryCity : 
        ipAddress : string * 
        response : CityResponse byref -> bool 
Parameters
- ipAddress
 - Type: SystemString
The IP address. - response
 - Type: MaxMind.GeoIP2.ResponsesCityResponse
The CityResponse. 
Return Value
Type: 
BooleanA 
Boolean describing whether the IP address was found.
See Also