RoomsModelFactory.RoomParticipant(String, ParticipantRole) Method

Definition

Initializes a new instance of RoomParticipant.

public static Azure.Communication.Rooms.RoomParticipant RoomParticipant (string rawId, Azure.Communication.Rooms.ParticipantRole role);
static member RoomParticipant : string * Azure.Communication.Rooms.ParticipantRole -> Azure.Communication.Rooms.RoomParticipant
Public Shared Function RoomParticipant (rawId As String, role As ParticipantRole) As RoomParticipant

Parameters

rawId
String

Raw ID representation of the communication identifier. Please refer to the following document for additional information on Raw ID. <br> https://zcusa.951200.xyz/azure/communication-services/concepts/identifiers?pivots=programming-language-rest#raw-id-representation.

role
ParticipantRole

The role of a room participant. The default value is Attendee.

Returns

A new RoomParticipant(String, ParticipantRole) instance for mocking.

Exceptions

rawId is null.

Applies to