Click or drag to resize

WebServiceClient Constructor (Int32, String, IEnumerableString, String, Int32, HttpMessageHandler)

Initializes a new instance of the WebServiceClient class.

Namespace:  MaxMind.GeoIP2
Assembly:  MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll) Version: 3.0.0
Syntax
public WebServiceClient(
	int accountId,
	string licenseKey,
	IEnumerable<string> locales = null,
	string host = "geoip.maxmind.com",
	int timeout = 3000,
	HttpMessageHandler httpMessageHandler = null
)

Parameters

accountId
Type: SystemInt32
Your MaxMind account ID.
licenseKey
Type: SystemString
Your MaxMind license key.
locales (Optional)
Type: System.Collections.GenericIEnumerableString
List of locale codes to use in name property from most preferred to least preferred.
host (Optional)
Type: SystemString
The host to use when accessing the service
timeout (Optional)
Type: SystemInt32
Timeout in milliseconds for connection to web service. The default is 3000.
httpMessageHandler (Optional)
Type: System.Net.HttpHttpMessageHandler
The HttpMessageHandler to use when creating the HttpClient.
See Also