次の方法で共有


CloudException.CreateFromXml メソッド

Creates a CloudException from a failed response that was sent using XML.

名前空間: Microsoft.WindowsAzure
アセンブリ: Microsoft.WindowsAzure.Common (Microsoft.WindowsAzure.Common.dll)

使用方法

'使用
Dim request As HttpRequestMessage
Dim requestContent As String
Dim response As HttpResponseMessage
Dim responseContent As String
Dim innerException As Exception
Dim returnValue As CloudException

returnValue = CloudException.CreateFromXml(request, requestContent, response, responseContent, innerException)

構文

'宣言
<ObsoleteAttribute("This method is obsolete. Use Create without defaultTo parameter.")> _
Public Shared Function CreateFromXml ( _
    request As HttpRequestMessage, _
    requestContent As String, _
    response As HttpResponseMessage, _
    responseContent As String, _
    <OptionalAttribute> Optional innerException As Exception = Nothing _
) As CloudException
[ObsoleteAttribute("This method is obsolete. Use Create without defaultTo parameter.")] 
public static CloudException CreateFromXml (
    HttpRequestMessage request,
    string requestContent,
    HttpResponseMessage response,
    string responseContent,
    [OptionalAttribute] Exception innerException
)
[ObsoleteAttribute(L"This method is obsolete. Use Create without defaultTo parameter.")] 
public:
static CloudException^ CreateFromXml (
    HttpRequestMessage^ request, 
    String^ requestContent, 
    HttpResponseMessage^ response, 
    String^ responseContent, 
    [OptionalAttribute] Exception^ innerException
)
/** @attribute ObsoleteAttribute("This method is obsolete. Use Create without defaultTo parameter.") */ 
public static CloudException CreateFromXml (
    HttpRequestMessage request, 
    String requestContent, 
    HttpResponseMessage response, 
    String responseContent, 
    /** @attribute OptionalAttribute() */ Exception innerException
)
ObsoleteAttribute("This method is obsolete. Use Create without defaultTo parameter.") 
public static function CreateFromXml (
    request : HttpRequestMessage, 
    requestContent : String, 
    response : HttpResponseMessage, 
    responseContent : String, 
    innerException : Exception
) : CloudException

パラメーター

  • request
    The HTTP request.
  • requestContent
    The HTTP request content.
  • response
    The HTTP response.
  • responseContent
    The HTTP response content.
  • innerException
    The inner exception.

戻り値

A CloudException that represents the failure.

スレッド セーフ

この型の public static (Visual Basic では Shared) メンバーはすべてスレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

Windows Vista、Windows 7 および Windows Server 2008

ターゲット プラットフォーム

関連項目

リファレンス

CloudException クラス
CloudException のメンバー
Microsoft.WindowsAzure 名前空間