Edit

Share via


OAuthCredentials Constructors

Definition

Overloads

OAuthCredentials(ICredentials)

Initializes a new instance of the OAuthCredentials class using the specified credentials. The OAuthCredentials(ICredentials) constructor is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

OAuthCredentials(String)

Initializes a new instance of the OAuthCredentials class using a base64-encoded string. The OAuthCredentials(String) constructor is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

OAuthCredentials(ICredentials)

Initializes a new instance of the OAuthCredentials class using the specified credentials. The OAuthCredentials(ICredentials) constructor is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

public:
 OAuthCredentials(System::Net::ICredentials ^ credentials);
public OAuthCredentials (System.Net.ICredentials credentials);
Public Sub New (credentials As ICredentials)

Parameters

credentials
ICredentials

The credentials to use.

Applies to

OAuthCredentials(String)

Initializes a new instance of the OAuthCredentials class using a base64-encoded string. The OAuthCredentials(String) constructor is applicable for clients that target Exchange Online and versions of Exchange starting with Exchange Server 2013.

public:
 OAuthCredentials(System::String ^ token);
public OAuthCredentials (string token);
Public Sub New (token As String)

Parameters

token
String

The token string.

Applies to