UriContent 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.
Represents a URL, typically to hosted content such as an image, audio, or video.
public ref class UriContent : Microsoft::Extensions::AI::AIContent
public class UriContent : Microsoft.Extensions.AI.AIContent
type UriContent = class
inherit AIContent
Public Class UriContent
Inherits AIContent
- Inheritance
Remarks
This class is intended for use with HTTP or HTTPS URIs that reference hosted content. For data URIs, use DataContent instead.
Constructors
UriContent(String, String) |
Initializes a new instance of the UriContent class. |
UriContent(Uri, String) |
Initializes a new instance of the UriContent class. |
Properties
AdditionalProperties |
Gets or sets additional properties for the content. (Inherited from AIContent) |
MediaType |
Gets or sets the media type (also known as MIME type) for this content. |
RawRepresentation |
Gets or sets the raw representation of the content from an underlying implementation. (Inherited from AIContent) |
Uri |
Gets or sets the Uri for this content. |
Methods
HasTopLevelMediaType(String) |
Determines whether the MediaType's top-level type matches the specified |