DatabaseReaderTryCity 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
Syntaxpublic bool TryCity(
	string ipAddress,
	out CityResponse response
)
Public Function TryCity ( 
	ipAddress As String,
	<OutAttribute> ByRef response As CityResponse
) As Boolean
public:
virtual bool TryCity(
	String^ ipAddress, 
	[OutAttribute] CityResponse^% response
) sealed
abstract TryCity : 
        ipAddress : string * 
        response : CityResponse byref -> bool 
override 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.
Implements
IGeoIP2DatabaseReaderTryCity(String, CityResponse)
See Also