Share via


TeamsInfo.GetMemberAsync(ITurnContext, String, CancellationToken) Method

Definition

Gets the account of a single conversation member. This works in one-on-one, group, and teams scoped conversations.

public static System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.TeamsChannelAccount> GetMemberAsync (Microsoft.Bot.Builder.ITurnContext turnContext, string userId, System.Threading.CancellationToken cancellationToken = default);
static member GetMemberAsync : Microsoft.Bot.Builder.ITurnContext * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.Teams.TeamsChannelAccount>
Public Shared Function GetMemberAsync (turnContext As ITurnContext, userId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TeamsChannelAccount)

Parameters

turnContext
ITurnContext

Turn context.

userId
String

ID of the user in question.

cancellationToken
CancellationToken

cancellation token.

Returns

Team Details.

Applies to