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
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기