CloudException.Create 方法 (HttpRequestMessage, String, HttpResponseMessage, String, Exception)
创建 CloudException 从失败的响应。
命名空间: Microsoft.WindowsAzure
程序集: Microsoft.WindowsAzure.Common(Microsoft.WindowsAzure.Common.dll 中)
语法
public static CloudException Create(
HttpRequestMessage request,
string requestContent,
HttpResponseMessage response,
string responseContent,
Exception innerException = null
)
public:
static CloudException^ Create(
HttpRequestMessage^ request,
String^ requestContent,
HttpResponseMessage^ response,
String^ responseContent,
Exception^ innerException = null
)
static member Create :
request:HttpRequestMessage *
requestContent:string *
response:HttpResponseMessage *
responseContent:string *
innerException:Exception = null -> CloudException
Public Shared Function Create (
request As HttpRequestMessage,
requestContent As String,
response As HttpResponseMessage,
responseContent As String,
innerException As Exception
) As CloudException
参数
request
Type: System.Net.Http.HttpRequestMessageHTTP 请求中。
requestContent
Type: System.StringHTTP 请求内容。
response
Type: System.Net.Http.HttpResponseMessageHTTP 响应中。
responseContent
Type: System.StringHTTP 响应的内容。
innerException
Type: System.Exception可选的内部异常。
返回值
Type: Microsoft.WindowsAzure.CloudException
表示故障 CloudException。
请参阅
Create 重载
CloudException 类
Microsoft.WindowsAzure 命名空间
返回页首