Condividi tramite


EventGridModelFactory.MicrosoftTeamsUserIdentifierModel Method

Definition

Initializes a new instance of MicrosoftTeamsUserIdentifierModel.

public static Azure.Messaging.EventGrid.SystemEvents.MicrosoftTeamsUserIdentifierModel MicrosoftTeamsUserIdentifierModel (string userId = default, bool? isAnonymous = default, Azure.Messaging.EventGrid.SystemEvents.CommunicationCloudEnvironmentModel? cloud = default);
static member MicrosoftTeamsUserIdentifierModel : string * Nullable<bool> * Nullable<Azure.Messaging.EventGrid.SystemEvents.CommunicationCloudEnvironmentModel> -> Azure.Messaging.EventGrid.SystemEvents.MicrosoftTeamsUserIdentifierModel
Public Shared Function MicrosoftTeamsUserIdentifierModel (Optional userId As String = Nothing, Optional isAnonymous As Nullable(Of Boolean) = Nothing, Optional cloud As Nullable(Of CommunicationCloudEnvironmentModel) = Nothing) As MicrosoftTeamsUserIdentifierModel

Parameters

userId
String

The Id of the Microsoft Teams user. If not anonymous, this is the AAD object Id of the user.

isAnonymous
Nullable<Boolean>

True if the Microsoft Teams user is anonymous. By default false if missing.

cloud
Nullable<CommunicationCloudEnvironmentModel>

The cloud that the Microsoft Teams user belongs to. By default 'public' if missing.

Returns

A new MicrosoftTeamsUserIdentifierModel instance for mocking.

Applies to