WebServiceClient Constructor (Int32, String, IEnumerableString, String, Int32, HttpMessageHandler) |
Namespace:
MaxMind.GeoIP2
Assembly:
MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll) Version: 3.0.0
Syntaxpublic WebServiceClient(
int accountId,
string licenseKey,
IEnumerable<string> locales = null,
string host = "geoip.maxmind.com",
int timeout = 3000,
HttpMessageHandler httpMessageHandler = null
)
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,
Optional httpMessageHandler As HttpMessageHandler = Nothing
)
public:
WebServiceClient(
int accountId,
String^ licenseKey,
IEnumerable<String^>^ locales = nullptr,
String^ host = L"geoip.maxmind.com",
int timeout = 3000,
HttpMessageHandler^ httpMessageHandler = nullptr
)
new :
accountId : int *
licenseKey : string *
?locales : IEnumerable<string> *
?host : string *
?timeout : int *
?httpMessageHandler : HttpMessageHandler
(* Defaults:
let _locales = defaultArg locales null
let _host = defaultArg host "geoip.maxmind.com"
let _timeout = defaultArg timeout 3000
let _httpMessageHandler = defaultArg httpMessageHandler null
*)
-> 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. - httpMessageHandler (Optional)
- Type: System.Net.HttpHttpMessageHandler
The HttpMessageHandler to use when creating the HttpClient.
See Also