共用方式為


CommunicationTokenCredential Constructors

Definition

Overloads

CommunicationTokenCredential(CommunicationTokenRefreshOptions)

Initializes a new instance of CommunicationTokenCredential that automatically renews the token upon expiry or proactively prior to expiration to speed up the requests.

CommunicationTokenCredential(String)

Initializes a new instance of CommunicationTokenCredential.

CommunicationTokenCredential(CommunicationTokenRefreshOptions)

Source:
CommunicationTokenCredential.cs
Source:
CommunicationTokenCredential.cs

Initializes a new instance of CommunicationTokenCredential that automatically renews the token upon expiry or proactively prior to expiration to speed up the requests.

public CommunicationTokenCredential (Azure.Communication.CommunicationTokenRefreshOptions options);
new Azure.Communication.CommunicationTokenCredential : Azure.Communication.CommunicationTokenRefreshOptions -> Azure.Communication.CommunicationTokenCredential
Public Sub New (options As CommunicationTokenRefreshOptions)

Parameters

options
CommunicationTokenRefreshOptions

Options for how the token will be refreshed

Applies to

CommunicationTokenCredential(String)

Source:
CommunicationTokenCredential.cs
Source:
CommunicationTokenCredential.cs

Initializes a new instance of CommunicationTokenCredential.

public CommunicationTokenCredential (string token);
new Azure.Communication.CommunicationTokenCredential : string -> Azure.Communication.CommunicationTokenCredential
Public Sub New (token As String)

Parameters

token
String

User token acquired from Azure.Communication.Administration package.

Applies to