Поделиться через


ImageConversationMessageContent Class

Definition

A request to send an image conversation message.

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

Constructors

ImageConversationMessageContent(Uri)

Initializes a new instance of ImageConversationMessageContent.

Properties

Caption

Optional text content.

MediaUri

A media url for the file. Required if the type is one of the supported media types, e.g. image.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ConversationMessageContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

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

Writes the model to the provided Utf8JsonWriter.

(Inherited from ConversationMessageContent)
IJsonModel<ImageConversationMessageContent>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ImageConversationMessageContent>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ConversationMessageContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

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

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

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

Writes the model into a BinaryData.

(Inherited from ConversationMessageContent)
IPersistableModel<ImageConversationMessageContent>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ImageConversationMessageContent>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ImageConversationMessageContent>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to