EWSClientGetEWSClient Method (ExchangeVersion, Boolean, String, String, ICredentials, WebProxy)

Initializes a new instance of the EWSClient based class

Namespace:  Aspose.Email.Clients.Exchange.WebService
Assembly:  Aspose.Email (in Aspose.Email.dll) Version: 21.10
Syntax
public static IEWSClient GetEWSClient(
	ExchangeVersion serverVersion,
	bool formbasedAuthenticationRequired,
	string formbasedAuthenticationLocation,
	string mailboxUri,
	ICredentials credentials,
	WebProxy proxy
)

Parameters

serverVersion
Type: Aspose.Email.Clients.Exchange.WebServiceExchangeVersion
Exchange server versions
formbasedAuthenticationRequired
Type: SystemBoolean
Set true if form-based authentication is required, otherwise set false.
formbasedAuthenticationLocation
Type: SystemString
url for form-based authentication
mailboxUri
Type: SystemString
The URI of mailbox
credentials
Type: System.NetICredentials
Contains the credentials for authentication.
proxy
Type: System.NetWebProxy
Contains HTTP proxy settings

Return Value

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