TeamsInfo.GetMeetingParticipantAsync Method

Definition

Gets the details for the given meeting participant. This only works in teams meeting scoped conversations.

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

Parameters

turnContext
ITurnContext

Turn context.

meetingId
String

The id of the Teams meeting. TeamsChannelData.Meeting.Id will be used if none provided.

participantId
String

The id of the Teams meeting participant. From.AadObjectId will be used if none provided.

tenantId
String

The id of the Teams meeting Tenant. TeamsChannelData.Tenant.Id will be used if none provided.

cancellationToken
CancellationToken

Cancellation token.

Returns

Team participant channel account.

Remarks

InvalidOperationException will be thrown if meetingId, participantId or tenantId have not been provided, and also cannot be retrieved from turnContext.Activity.

Applies to