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)
ParameterTypeDescription
mailboxUriStringThe URI of mailbox
credentialsICredentialsContains the credentials for authentication.
proxyWebProxyContains HTTP proxy settings
cancellationTokenCancellationTokenThe cancellation token

Return Value

Instance of the class based on the EWSClient class.

See Also