Share via


CommunicationMessagesModelFactory.DocumentNotificationContent Method

Definition

Initializes a new instance of DocumentNotificationContent.

public static Azure.Communication.Messages.DocumentNotificationContent DocumentNotificationContent (Guid channelRegistrationId = default, System.Collections.Generic.IEnumerable<string> to = default, string caption = default, string fileName = default, Uri mediaUri = default);
static member DocumentNotificationContent : Guid * seq<string> * string * string * Uri -> Azure.Communication.Messages.DocumentNotificationContent
Public Shared Function DocumentNotificationContent (Optional channelRegistrationId As Guid = Nothing, Optional to As IEnumerable(Of String) = Nothing, Optional caption As String = Nothing, Optional fileName As String = Nothing, Optional mediaUri As Uri = Nothing) As DocumentNotificationContent

Parameters

channelRegistrationId
Guid

The Channel Registration ID for the Business Identifier.

to
IEnumerable<String>

The native external platform user identifiers of the recipient.

caption
String

Optional text content.

fileName
String

Optional name for the file.

mediaUri
Uri

A media url for the file. Required if the type is one of the supported media types, e.g. image.

Returns

A new DocumentNotificationContent instance for mocking.

Applies to