Share via


CommunicationMessagesModelFactory.ImageNotificationContent Method

Definition

Initializes a new instance of ImageNotificationContent.

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

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.

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 ImageNotificationContent instance for mocking.

Applies to