Share via


MicrosoftTeamsUserIdentifier Constructor

Definition

Initializes a new instance of MicrosoftTeamsUserIdentifier.

public MicrosoftTeamsUserIdentifier (string userId, bool isAnonymous = false, Azure.Communication.CommunicationCloudEnvironment? cloud = default, string rawId = default);
new Azure.Communication.MicrosoftTeamsUserIdentifier : string * bool * Nullable<Azure.Communication.CommunicationCloudEnvironment> * string -> Azure.Communication.MicrosoftTeamsUserIdentifier
Public Sub New (userId As String, Optional isAnonymous As Boolean = false, Optional cloud As Nullable(Of CommunicationCloudEnvironment) = Nothing, Optional rawId As String = Nothing)

Parameters

userId
String

Id of the Microsoft Teams user. If the user isn't anonymous, the id is the Azure AD object id of the user.

isAnonymous
Boolean

Set this to true if the user is anonymous, for example when joining a meeting with a share link.

cloud
Nullable<CommunicationCloudEnvironment>

The cloud that the Microsoft Team user belongs to. A null value translates to the Public cloud.

rawId
String

Raw id of the Microsoft Teams user, optional.

Exceptions

Thrown when the userId is null.

Thrown when the userId is empty.

Applies to