EWSClientGetEWSClient Method (String, ICredentials)

Initializes a new instance of the EWSClient based class

Namespace:  Aspose.Email.Clients.Exchange.WebService
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 20.10
Syntax
public static IEWSClient GetEWSClient(
	string mailboxUri,
	ICredentials credentials
)

Parameters

mailboxUri
Type: SystemString
The URI of mailbox
credentials
Type: System.NetICredentials
Contains the credentials for authentication.

Return Value

Type: IEWSClient
Instance of the class based on the EWSClient class.
See Also