API Reference
Class
GeoIpAnalysis
Provides geolocation information using a local IP database.
Inheritance
- Object
- GeoIpAnalysis
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Property DnsPropagationAnalysis.GeoIp
Constructors
public GeoIpAnalysis() #Methods
public Void LoadBuiltinDatabase(Boolean clearExisting = true) #Returns:
VoidLoads entries from the embedded database.
Parameters
- clearExisting System.Boolean = true
- When true the current database is cleared.
public Void LoadDatabase(String filePath, Boolean clearExisting = true) #Returns:
VoidLoads entries from a CSV file.
Parameters
- filePath System.String
- Path to the CSV file.
- clearExisting System.Boolean = true
- When true the current database is cleared.
public GeoLocationInfo Lookup(String ip) #Returns:
GeoLocationInfoLooks up geolocation information for an IP address.
Parameters
- ip System.String
- IP address to query.
Returns
Geolocation info or null if not found.
public Task<GeoLocationInfo> LookupAsync(String ip, CancellationToken ct = null) #Returns:
Task<GeoLocationInfo>Asynchronously looks up geolocation information.
Parameters
- ip System.String
- IP address to query.
- ct System.Threading.CancellationToken = null
- Cancellation token.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object