Delen via


UserTokenExtensions.GetAadTokensAsync Methode

Definitie

AAD-token ophalen.

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

Parameters

operations
IUserToken

De bewerkingsgroep voor deze extensiemethode.

userId
String

Gebruikers-id.

connectionName
String

Verbindingsnaam.

aadResourceUrls
AadResourceUrls

AAD-resource-URL's.

channelId
String

Kanaal-id.

cancellationToken
CancellationToken

Het annuleringstoken.

Retouren

Een taak die een IDictionary van TokenResponses vertegenwoordigt.

Van toepassing op