你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ResponseMessage 构造函数

定义

重载

ResponseMessage()

创建 ResponseMessage

ResponseMessage(HttpStatusCode, RequestMessage, String)

创建 ResponseMessage

ResponseMessage()

Source:
ResponseMessage.cs
public ResponseMessage ();
Public Sub New ()

适用于

ResponseMessage(HttpStatusCode, RequestMessage, String)

Source:
ResponseMessage.cs
public ResponseMessage (System.Net.HttpStatusCode statusCode, Microsoft.Azure.Cosmos.RequestMessage requestMessage = default, string errorMessage = default);
new Microsoft.Azure.Cosmos.ResponseMessage : System.Net.HttpStatusCode * Microsoft.Azure.Cosmos.RequestMessage * string -> Microsoft.Azure.Cosmos.ResponseMessage
Public Sub New (statusCode As HttpStatusCode, Optional requestMessage As RequestMessage = Nothing, Optional errorMessage As String = Nothing)

参数

statusCode
HttpStatusCode

响应的 HttpStatusCode

requestMessage
RequestMessage

对象RequestMessage

errorMessage
String

失败的原因(如果有)。

适用于