Jaa


TeamsInfo.GetTeamMemberAsync Method

Definition

Gets the member of a teams scoped conversation.

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

Parameters

turnContext
ITurnContext

Turn context.

userId
String

user id.

teamId
String

ID of the Teams team.

cancellationToken
CancellationToken

cancellation token.

Returns

Team Details.

Applies to