Dela via


TeamsInfo.GetTeamMemberAsync Metod

Definition

Hämtar medlemmen i en gruppomfattande konversation.

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)

Parametrar

turnContext
ITurnContext

Aktivera kontext.

userId
String

användar-ID.

teamId
String

ID för Teams-teamet.

cancellationToken
CancellationToken

annulleringstoken.

Returer

Teaminformation.

Gäller för