BinaryContent Class
Definition
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.
Provides access to binary content.
public class BinaryContent : Microsoft.SemanticKernel.KernelContent
type BinaryContent = class
inherit KernelContent
Public Class BinaryContent
Inherits KernelContent
- Inheritance
- Derived
Constructors
BinaryContent() |
Initializes a new instance of the BinaryContent class with no content. |
BinaryContent(ReadOnlyMemory<Byte>, String) |
Initializes a new instance of the BinaryContent class from a byte array. |
BinaryContent(String) |
Initializes a new instance of the BinaryContent class for a UriData or Uri referred content. |
BinaryContent(Uri) |
Initializes a new instance of the BinaryContent class referring to an external uri. |
Properties
CanRead |
Indicates whether the content contains binary data in either Data or DataUri properties. |
Content |
Obsolete.
The binary content. |
Data |
Gets the byte array data of the content. |
DataUri |
Gets the DataUri of the content. |
InnerContent |
The inner content representation. Use this to bypass the current abstraction. (Inherited from KernelContent) |
Metadata |
The metadata associated with the content. (Inherited from KernelContent) |
MimeType |
MIME type of the content. (Inherited from KernelContent) |
ModelId |
The model ID used to generate the content. (Inherited from KernelContent) |
Uri |
Gets the referenced Uri of the content. |