Delen via


CallConnection.GetParticipantAsync Method

Definition

Get participant from a call.

public virtual System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.CallParticipant>> GetParticipantAsync (Azure.Communication.CommunicationIdentifier participantIdentifier, System.Threading.CancellationToken cancellationToken = default);
abstract member GetParticipantAsync : Azure.Communication.CommunicationIdentifier * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.CallParticipant>>
override this.GetParticipantAsync : Azure.Communication.CommunicationIdentifier * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.Communication.CallAutomation.CallParticipant>>
Public Overridable Function GetParticipantAsync (participantIdentifier As CommunicationIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of CallParticipant))

Parameters

participantIdentifier
CommunicationIdentifier

The participant's identifier.

cancellationToken
CancellationToken

The cancellation token.

Returns

The CallParticipant.

Exceptions

The server returned an error. See Message for details returned from the server.

participantIdentifier is null.

Applies to