WebServiceClient Constructor |
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
)
Public Sub New (
accountId As Integer,
licenseKey As String,
Optional locales As IEnumerable(Of String) = Nothing,
Optional host As String = "geoip.maxmind.com",
Optional timeout As Integer = 3000
)
public:
WebServiceClient(
int accountId,
String^ licenseKey,
IEnumerable<String^>^ locales = nullptr,
String^ host = L"geoip.maxmind.com",
int timeout = 3000
)
new :
accountId : int *
licenseKey : string *
?locales : IEnumerable<string> *
?host : string *
?timeout : int
(* Defaults:
let _locales = defaultArg locales null
let _host = defaultArg host "geoip.maxmind.com"
let _timeout = defaultArg timeout 3000
*)
-> WebServiceClient
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.
See Also