CloudException.Create 方法 (HttpRequestMessage, String, HttpResponseMessage, String, CloudExceptionType, Exception)
备注:此 API 现在已过时。
创建 CloudException 从失败的响应。 此方法已过时。 如果不使用 defaultTo 参数中使用创建。
命名空间: Microsoft.WindowsAzure
程序集: Microsoft.WindowsAzure.Common(Microsoft.WindowsAzure.Common.dll 中)
语法
[ObsoleteAttribute("This method is obsolete. Use Create without defaultTo parameter.")]
public static CloudException Create(
HttpRequestMessage request,
string requestContent,
HttpResponseMessage response,
string responseContent,
CloudExceptionType defaultTo,
Exception innerException = null
)
public:
[ObsoleteAttribute("This method is obsolete. Use Create without defaultTo parameter.")]
static CloudException^ Create(
HttpRequestMessage^ request,
String^ requestContent,
HttpResponseMessage^ response,
String^ responseContent,
CloudExceptionType defaultTo,
Exception^ innerException = null
)
[<ObsoleteAttribute("This method is obsolete. Use Create without defaultTo parameter.")>]
static member Create :
request:HttpRequestMessage *
requestContent:string *
response:HttpResponseMessage *
responseContent:string *
defaultTo:CloudExceptionType *
innerException:Exception = null -> CloudException
<ObsoleteAttribute("This method is obsolete. Use Create without defaultTo parameter.")>
Public Shared Function Create (
request As HttpRequestMessage,
requestContent As String,
response As HttpResponseMessage,
responseContent As String,
defaultTo As CloudExceptionType,
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 响应的内容。
defaultTo
Type: Microsoft.WindowsAzure.CloudExceptionType要默认为 if 无类型匹配的内容类型。
innerException
Type: System.Exception可选的内部异常。
返回值
Type: Microsoft.WindowsAzure.CloudException
表示故障 CloudException。
请参阅
Create 重载
CloudException 类
Microsoft.WindowsAzure 命名空间
返回页首