DataContent Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents data content, such as an image or audio.
public ref class DataContent : Microsoft::Extensions::AI::AIContent
public class DataContent : Microsoft.Extensions.AI.AIContent
type DataContent = class
inherit AIContent
Public Class DataContent
Inherits AIContent
- Inheritance
The represented content may either be the actual bytes stored in this instance, or it may be a URI that references the location of the content.
Uri always returns a valid URI string, even if the instance was constructed from a ReadOnlyMemory<T>. In that case, a data URI will be constructed and returned.
Data |
Initializes a new instance of the DataContent class. |
Data |
Initializes a new instance of the DataContent class. |
Data |
Initializes a new instance of the DataContent class. |
Additional |
Gets or sets additional properties for the content. (Inherited from AIContent) |
Data |
Gets the data represented by this instance. |
Media |
Gets the media type (also known as MIME type) of the content. |
Raw |
Gets or sets the raw representation of the content from an underlying implementation. (Inherited from AIContent) |
Uri |
Gets the URI for this DataContent. |
Media |
Determines whether the MediaType has the specified prefix. |
Product | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Standard | 2.0 (package-provided) |
.NET feedback
.NET is an open source project. Select a link to provide feedback: