Compartilhar via


MessageDeltaContent Class

Definition

The abstract base representation of a partial streamed message content payload. Please note MessageDeltaContent 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 MessageDeltaImageFileContent and MessageDeltaTextContent.

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

Constructors

MessageDeltaContent(Int32)

Initializes a new instance of MessageDeltaContent.

Properties

Index

The index of the content part of the message.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<MessageDeltaContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MessageDeltaContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MessageDeltaContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MessageDeltaContent>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MessageDeltaContent>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to