Click or drag to resize
WebServiceClient Constructor (Int32, String, IEnumerableString, String, Int32)
Initializes a new instance of the WebServiceClient class.

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

Parameters

userId
Type: SystemInt32
The user unique identifier.
licenseKey
Type: SystemString
The license key.
locales
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.
See Also