次の方法で共有


RoomsModelFactory.RoomParticipant(String, ParticipantRole) メソッド

定義

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

パラメーター

rawId
String

通信識別子の生 ID 表現。 生 ID の詳細については、次のドキュメントを参照してください。 <br>https://learn.microsoft.com/azure/communication-services/concepts/identifiers?pivots=programming-language-rest#raw-id-representation.

role
ParticipantRole

ルームへの参加者に割り当てられているロール。 既定値は Attendee です。

戻り値

モック作成用の新しい RoomParticipant(String, ParticipantRole) インスタンス。

例外

rawId が null です。

適用対象