你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ChatMessageImageContentItem Class

Definition

A structured chat content item containing an image reference.

public class ChatMessageImageContentItem : Azure.AI.Inference.ChatMessageContentItem, System.ClientModel.Primitives.IJsonModel<Azure.AI.Inference.ChatMessageImageContentItem>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Inference.ChatMessageImageContentItem>
type ChatMessageImageContentItem = class
    inherit ChatMessageContentItem
    interface IJsonModel<ChatMessageImageContentItem>
    interface IPersistableModel<ChatMessageImageContentItem>
Public Class ChatMessageImageContentItem
Inherits ChatMessageContentItem
Implements IJsonModel(Of ChatMessageImageContentItem), IPersistableModel(Of ChatMessageImageContentItem)
Inheritance
ChatMessageImageContentItem
Implements

Constructors

ChatMessageImageContentItem(BinaryData, String, Nullable<ChatMessageImageDetailLevel>)

Initializes a new instance of ChatMessageImageContentItem from a BinaryData instance containing image information in a known format.

ChatMessageImageContentItem(Stream, String, Nullable<ChatMessageImageDetailLevel>)

Initializes a new instance of ChatMessageImageContentItem from a BinaryData instance containing image information in a known format.

ChatMessageImageContentItem(String, String, Nullable<ChatMessageImageDetailLevel>)

Initializes a new instance of ChatMessageImageContentItem from a file pointer to an image in a known format.

ChatMessageImageContentItem(Uri, Nullable<ChatMessageImageDetailLevel>)

Initializes a new instance of ChatMessageImageContentItem that refers to an image at another location via URL.

Explicit Interface Implementations

IJsonModel<ChatMessageContentItem>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

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

Writes the model to the provided Utf8JsonWriter.

(Inherited from ChatMessageContentItem)
IJsonModel<ChatMessageImageContentItem>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ChatMessageImageContentItem>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ChatMessageContentItem>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

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

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

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

Writes the model into a BinaryData.

(Inherited from ChatMessageContentItem)
IPersistableModel<ChatMessageImageContentItem>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ChatMessageImageContentItem>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ChatMessageImageContentItem>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to