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.5.0 build 687 for .NET 4.5
Syntax
public void SetCredentials(
	ExchangeCredentials creds
)

Parameters

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

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. Or this sample in MailBee.NET Objects blog.

See MS Exchange guide on how to set impersonated account access.

See Also