Delen via


CallConnection.GetParticipant Method

Definition

Get participant from a call.

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

Parameters

participantIdentifier
CommunicationIdentifier

The participant 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