DatabaseReader.TryCountry Method (String, CountryResponse) |
Namespace: MaxMind.GeoIP2Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll) Version: 2.7.1
Syntaxpublic bool TryCountry(
string ipAddress,
out CountryResponse response
)
Public Function TryCountry (
ipAddress As String,
<OutAttribute> ByRef response As CountryResponse
) As Boolean
public:
virtual bool TryCountry(
String^ ipAddress,
[OutAttribute] CountryResponse^% response
) sealed
abstract TryCountry :
ipAddress : string *
response : CountryResponse byref -> bool
override TryCountry :
ipAddress : string *
response : CountryResponse byref -> bool
Parameters
- ipAddress
- Type: System.String
The IP address. - response
- Type: MaxMind.GeoIP2.Responses.CountryResponse
The CountryResponse.
Return Value
Type:
BooleanA
Boolean describing whether the IP address was found.
Implements
IGeoIP2DatabaseReader.TryCountry(String, CountryResponse)
See Also