EwsSetCredentials Method (String, String)
Sets the login and password 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(
	string accountName,
	string password
)

Parameters

accountName
Type: SystemString
The account name or a null reference (Nothing in Visual Basic) in case if Integrated Windows Authentication must be used.
password
Type: SystemString
The account password or a null reference in case if Integrated Windows Authentication must be used.
Remarks
If you want to use OAuth2 authentication (e.g. with Office 365), use SetCredentials(ExchangeCredentials) overload.
See Also