Condividi tramite


MessageTextAnnotation Class

Definition

An abstract representation of an annotation to text thread message content. Please note MessageTextAnnotation is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include MessageTextFileCitationAnnotation and MessageTextFilePathAnnotation.

[System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.AI.Projects.UnknownMessageTextAnnotation))]
public abstract class MessageTextAnnotation : System.ClientModel.Primitives.IJsonModel<Azure.AI.Projects.MessageTextAnnotation>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Projects.MessageTextAnnotation>
[<System.ClientModel.Primitives.PersistableModelProxy(typeof(Azure.AI.Projects.UnknownMessageTextAnnotation))>]
type MessageTextAnnotation = class
    interface IJsonModel<MessageTextAnnotation>
    interface IPersistableModel<MessageTextAnnotation>
Public MustInherit Class MessageTextAnnotation
Implements IJsonModel(Of MessageTextAnnotation), IPersistableModel(Of MessageTextAnnotation)
Inheritance
MessageTextAnnotation
Derived
Attributes
Implements

Constructors

MessageTextAnnotation(String)

Initializes a new instance of MessageTextAnnotation.

Properties

Text

The textual content associated with this text annotation item.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<MessageTextAnnotation>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MessageTextAnnotation>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MessageTextAnnotation>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MessageTextAnnotation>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MessageTextAnnotation>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to