Share via


TextMessageContent Class

Definition

The message content of type text information.

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

Constructors

TextMessageContent(String)

Initializes a new instance of TextMessageContent.

Properties

Text

The text value.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<MessageContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

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

Writes the model to the provided Utf8JsonWriter.

(Inherited from MessageContent)
IJsonModel<TextMessageContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<TextMessageContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MessageContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

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

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

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

Writes the model into a BinaryData.

(Inherited from MessageContent)
IPersistableModel<TextMessageContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<TextMessageContent>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<TextMessageContent>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to