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)
Parameter Type Description
mailboxUri String The URI of mailbox
credentials ICredentials Contains the credentials for authentication.
proxy WebProxy Contains HTTP proxy settings
cancellationToken CancellationToken The cancellation token

Return Value

Instance of the class based on the EWSClient class.

See Also