Share via


MediaResponse Class

Definition

Represents the response associated with retrieving attachment content from the Azure Cosmos DB service.

public sealed class MediaResponse : Microsoft.Azure.Documents.Client.IMediaResponse
type MediaResponse = class
    interface IMediaResponse
Public NotInheritable Class MediaResponse
Implements IMediaResponse
Inheritance
MediaResponse
Implements

Constructors

MediaResponse()

Constructor exposed for mocking purposes for the Azure Cosmos DB service.

Properties

ActivityId

Gets or sets the Activity ID for the request in the Azure Cosmos DB service.

ContentLength

Gets or sets the HTTP ContentLength header value in the Azure Cosmos DB service.

ContentType

Gets or sets the HTTP ContentType header value in the Azure Cosmos DB service.

CurrentMediaStorageUsageInMB

Gets the current attachment content (media) usage in megabytes from the Azure Cosmos DB service.

MaxMediaStorageUsageInMB

Gets the attachment content (media) storage quota in megabytes from the Azure Cosmos DB service. Retrieved from gateway.

Media

Gets or sets the attachment content stream in the Azure Cosmos DB service.

ResponseHeaders

Gets the headers associated with the response from the Azure Cosmos DB service.

Slug

Gets or sets the HTTP slug header value in the Azure Cosmos DB service.

Applies to