DocumentResponse<TDocument> Class

Definition

Represents the template class used by methods returning single objects in the Azure DocumentDB database service.

public sealed class DocumentResponse<TDocument> : Microsoft.Azure.Documents.Client.ResourceResponseBase, Microsoft.Azure.Documents.Client.IDocumentResponse<TDocument>
Type Parameters
TDocument

the document type.

Inheritance
DocumentResponse<TDocument>
Implements

Inherited Members

Microsoft.Azure.Documents.Client.ResourceResponseBase

Remarks

Response from type-specific read of Document resource(ReadDocumentAsync{TDocument}) returns the response wrapped in a DocumentResponse object. This contains the metadata from the response headers from the Azure DocumentDB call including the request units (RequestCharge), activity ID, quotas/usage of resources and the typed document object(TDocument).

Constructors

DocumentResponse<TDocument>()

Constructor exposed for mocking purposes for the Azure DocumentDB database service.

DocumentResponse<TDocument>(TDocument)

Constructor exposed for mocking purposes for the Azure DocumentDB database service.

Properties

Document

Gets the document returned in the response from the Azure DocumentDB database service.

Operators

Implicit(DocumentResponse<TDocument> to TDocument)

Returns the document in the response implicitly from the Azure DocumentDB database service.

Extension Methods

IsDefined(Object)
IsNull(Object)
IsPrimitive(Object)