Compartilhar via


Método CloudException.CreateFromXml

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

Namespace: Microsoft.WindowsAzure
Assembly: Microsoft.WindowsAzure.Common (em Microsoft.WindowsAzure.Common.dll)

Uso

'Uso
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)

Sintaxe

'Declaração
<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

Parâmetros

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

Valor de retorno

A CloudException that represents the failure.

Segurança de thread

Qualquer membro estático público (compartilhado no Visual Basic) desse tipo é thread-safe. Não há garantia de que qualquer membro de instância seja seguro para threads.

Plataformas

Plataformas de desenvolvimento

Windows Vista, Windows 7 e Windows Server 2008

Plataformas de destino

Consulte também

Referência

Classe CloudException
Membros CloudException
Namespace Microsoft.WindowsAzure