DatabaseReaderTryAsn Method (IPAddress, AsnResponse) |
Tries to lookup an
AsnResponse for the specified IP address.
Namespace:
MaxMind.GeoIP2
Assembly:
MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll) Version: 3.0.0
Syntax public bool TryAsn(
IPAddress ipAddress,
out AsnResponse response
)
Public Function TryAsn (
ipAddress As IPAddress,
<OutAttribute> ByRef response As AsnResponse
) As Boolean
public:
virtual bool TryAsn(
IPAddress^ ipAddress,
[OutAttribute] AsnResponse^% response
) sealed
abstract TryAsn :
ipAddress : IPAddress *
response : AsnResponse byref -> bool
override TryAsn :
ipAddress : IPAddress *
response : AsnResponse byref -> bool
Parameters
- ipAddress
- Type: System.NetIPAddress
The IP address. - response
- Type: MaxMind.GeoIP2.ResponsesAsnResponse
The AsnResponse.
Return Value
Type:
BooleanA
Boolean describing whether the IP address was found.
Implements
IGeoIP2DatabaseReaderTryAsn(IPAddress, AsnResponse)See Also