Dela via


UserTokenExtensions.GetTokenAsync Metod

Definition

Hämta token.

public static System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenResponse> GetTokenAsync (this Microsoft.Bot.Connector.IUserToken operations, string userId, string connectionName, string channelId = default, string code = default, System.Threading.CancellationToken cancellationToken = default);
static member GetTokenAsync : Microsoft.Bot.Connector.IUserToken * string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenResponse>
<Extension()>
Public Function GetTokenAsync (operations As IUserToken, userId As String, connectionName As String, Optional channelId As String = Nothing, Optional code As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TokenResponse)

Parametrar

operations
IUserToken

Åtgärdsgruppen för den här tilläggsmetoden.

userId
String

Användar-ID.

connectionName
String

Anslutningsnamn.

channelId
String

Kanal-ID.

code
String

Koda.

cancellationToken
CancellationToken

Annulleringstoken.

Returer

En uppgift som representerar tokensvaret.

Gäller för