Share via


MessageTemplateImage Class

Definition

The message template's image value information.

public class MessageTemplateImage : Azure.Communication.Messages.MessageTemplateValue, System.ClientModel.Primitives.IJsonModel<Azure.Communication.Messages.MessageTemplateImage>, System.ClientModel.Primitives.IPersistableModel<Azure.Communication.Messages.MessageTemplateImage>
public class MessageTemplateImage : Azure.Communication.Messages.MessageTemplateValue
type MessageTemplateImage = class
    inherit MessageTemplateValue
    interface IJsonModel<MessageTemplateImage>
    interface IPersistableModel<MessageTemplateImage>
type MessageTemplateImage = class
    inherit MessageTemplateValue
Public Class MessageTemplateImage
Inherits MessageTemplateValue
Implements IJsonModel(Of MessageTemplateImage), IPersistableModel(Of MessageTemplateImage)
Public Class MessageTemplateImage
Inherits MessageTemplateValue
Inheritance
MessageTemplateImage
Implements

Constructors

MessageTemplateImage(String, Uri, String, String)
MessageTemplateImage(String, Uri)

Initializes a new instance of MessageTemplateImage.

Properties

Caption

The [optional] caption of the media object.

FileName

The [optional] filename of the media file.

Name

Template binding reference name.

(Inherited from MessageTemplateValue)
Uri

The (public) URL of the media.

Explicit Interface Implementations

IJsonModel<MessageTemplateImage>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<MessageTemplateImage>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<MessageTemplateValue>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from MessageTemplateValue)
IJsonModel<MessageTemplateValue>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from MessageTemplateValue)
IPersistableModel<MessageTemplateImage>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MessageTemplateImage>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<MessageTemplateImage>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<MessageTemplateValue>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from MessageTemplateValue)
IPersistableModel<MessageTemplateValue>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from MessageTemplateValue)
IPersistableModel<MessageTemplateValue>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from MessageTemplateValue)

Applies to