共用方式為


EventGridModelFactory.CommunicationIdentifierModel Method

Definition

Initializes a new instance of CommunicationIdentifierModel.

public static Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel CommunicationIdentifierModel (Azure.Messaging.EventGrid.SystemEvents.AcsCommunicationIdentifierKind? kind = default, string rawId = default, Azure.Messaging.EventGrid.SystemEvents.CommunicationUserIdentifierModel communicationUser = default, Azure.Messaging.EventGrid.SystemEvents.PhoneNumberIdentifierModel phoneNumber = default, Azure.Messaging.EventGrid.SystemEvents.MicrosoftTeamsUserIdentifierModel microsoftTeamsUser = default, Azure.Messaging.EventGrid.SystemEvents.AcsMicrosoftTeamsAppIdentifier microsoftTeamsApp = default);
static member CommunicationIdentifierModel : Nullable<Azure.Messaging.EventGrid.SystemEvents.AcsCommunicationIdentifierKind> * string * Azure.Messaging.EventGrid.SystemEvents.CommunicationUserIdentifierModel * Azure.Messaging.EventGrid.SystemEvents.PhoneNumberIdentifierModel * Azure.Messaging.EventGrid.SystemEvents.MicrosoftTeamsUserIdentifierModel * Azure.Messaging.EventGrid.SystemEvents.AcsMicrosoftTeamsAppIdentifier -> Azure.Messaging.EventGrid.SystemEvents.CommunicationIdentifierModel
Public Shared Function CommunicationIdentifierModel (Optional kind As Nullable(Of AcsCommunicationIdentifierKind) = Nothing, Optional rawId As String = Nothing, Optional communicationUser As CommunicationUserIdentifierModel = Nothing, Optional phoneNumber As PhoneNumberIdentifierModel = Nothing, Optional microsoftTeamsUser As MicrosoftTeamsUserIdentifierModel = Nothing, Optional microsoftTeamsApp As AcsMicrosoftTeamsAppIdentifier = Nothing) As CommunicationIdentifierModel

Parameters

kind
Nullable<AcsCommunicationIdentifierKind>

The identifier kind. Only required in responses.

rawId
String

Raw Id of the identifier. Optional in requests, required in responses.

communicationUser
CommunicationUserIdentifierModel

The communication user.

phoneNumber
PhoneNumberIdentifierModel

The phone number.

microsoftTeamsUser
MicrosoftTeamsUserIdentifierModel

The Microsoft Teams user.

microsoftTeamsApp
AcsMicrosoftTeamsAppIdentifier

The Microsoft Teams application.

Returns

A new CommunicationIdentifierModel instance for mocking.

Applies to