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

参数

返回值

Type: Microsoft.WindowsAzure.CloudException

表示故障 CloudException。

请参阅

Create 重载
CloudException 类
Microsoft.WindowsAzure 命名空间

返回页首