Share via


CommunicationMessagesModelFactory.MessageTemplateImage Method

Definition

Initializes a new instance of MessageTemplateImage.

public static Azure.Communication.Messages.MessageTemplateImage MessageTemplateImage (string name = default, Uri uri = default, string caption = default, string fileName = default);
static member MessageTemplateImage : string * Uri * string * string -> Azure.Communication.Messages.MessageTemplateImage
Public Shared Function MessageTemplateImage (Optional name As String = Nothing, Optional uri As Uri = Nothing, Optional caption As String = Nothing, Optional fileName As String = Nothing) As MessageTemplateImage

Parameters

name
String

Template binding reference name.

uri
Uri

The (public) URL of the media.

caption
String

The [optional] caption of the media object.

fileName
String

The [optional] filename of the media file.

Returns

A new MessageTemplateImage instance for mocking.

Applies to