ResponseMessage 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 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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應