Share via


MessageTemplateDocument Class

Definition

The message template's document value information.

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

Constructors

Name Description
MessageTemplateDocument(String, Uri)

Initializes a new instance of MessageTemplateDocument.

Properties

Name Description
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.

Methods

Name Description
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<MessageTemplateDocument>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MessageTemplateDocument>.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<MessageTemplateDocument>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MessageTemplateDocument>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MessageTemplateDocument>.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