UserTokenApiClient.GetAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get a user token for a connection.
public System.Threading.Tasks.Task<Microsoft.Teams.Core.GetTokenResult?> GetAsync(string userId, string connectionName, string channelId, string? code = default, System.Threading.CancellationToken cancellationToken = default);
member this.GetAsync : string * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Teams.Core.GetTokenResult>
Public Function GetAsync (userId As String, connectionName As String, channelId As String, Optional code As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of GetTokenResult)
Parameters
- userId
- String
- connectionName
- String
- channelId
- String
- code
- String
- cancellationToken
- CancellationToken