EWSClient.GetEwsClientAsync

EWSClient.GetEwsClientAsync method

Initializes a new instance of the EWSClient based class

public static Task<IAsyncEwsClient> GetEwsClientAsync(string mailboxUri, ICredentials credentials, 
    WebProxy proxy = null, CancellationToken cancellationToken = default, 
    Dictionary<string, string> headers = null)
ParameterTypeDescription
mailboxUriStringThe URI of mailbox
credentialsICredentialsContains the credentials for authentication.
proxyWebProxyContains HTTP proxy settings
cancellationTokenCancellationTokenThe cancellation token
headersDictionary`2Additional headers for client.

Return Value

Instance of the class based on the EWSClient class.

See Also