Sdílet prostřednictvím


ResponseMessage Class

Definition

Represents a response from the Azure Cosmos DB service.

public class ResponseMessage : IDisposable
type ResponseMessage = class
    interface IDisposable
Public Class ResponseMessage
Implements IDisposable
Inheritance
ResponseMessage
Implements

Constructors

ResponseMessage()

Create a ResponseMessage

ResponseMessage(HttpStatusCode, RequestMessage, String)

Create a ResponseMessage

Properties

Content

Gets the content as a Stream, if any, of the current response.

ContinuationToken

Gets the Continuation Token in the current ResponseMessage.

Diagnostics

Gets or sets the cosmos diagnostic information for the current request to Azure Cosmos DB service

ErrorMessage

Gets the reason for a failure in the current response.

Headers

Gets the current ResponseMessage HTTP headers.

IndexMetrics

Gets the Index Metrics in the current ResponseMessage to be used for debugging purposes. It's applicable to query response only. Other feed response will return null for this field. This result is only available if QueryRequestOptions.PopulateIndexMetrics is set to true.

IsSuccessStatusCode

Asserts if the current HttpStatusCode is a success.

RequestMessage

Gets the original request message

StatusCode

Gets the HttpStatusCode of the current response.

Methods

Dispose()

Disposes the current ResponseMessage.

Dispose(Boolean)

Dispose of the response message content

EnsureSuccessStatusCode()

Checks if the current ResponseMessage has a successful status code, otherwise, throws.

Applies to