EwsSetCredentials Method (ExchangeCredentials)
Sets the credentials (e.g. OAuth2) of the MS Exchange account for subsequent operations.

Namespace: MailBee.EwsMail
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.2.0 build 630 for .NET 4.5
public void SetCredentials(
	ExchangeCredentials creds


Type: ExchangeCredentials
The credentials that are used to authenticate with EWS.

This overload lets the developer use other authentication methods than login/password. For instance, OAuthCredentials for OAuth2 authentication.

See Authenticate an EWS application by using OAuth on how to get OAuthCredentials with Managed EWS API.

See on how to set impersonated account access.