Share via


UriContent Class

Definition

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
UriContent

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 topLevelType.

Applies to