Metodo CloudException.CreateFromXml
Creates a CloudException from a failed response that was sent using XML.
Spazio dei nomi: Microsoft.WindowsAzure
Assembly: Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)
Utilizzo
'Utilizzo
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)
Sintassi
'Dichiarazione
<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
Parametri
- request
The HTTP request.
- requestContent
The HTTP request content.
- response
The HTTP response.
- responseContent
The HTTP response content.
- innerException
The inner exception.
Valore restituito
A CloudException that represents the failure.
Sicurezza dei thread
Qualsiasi membro statico pubblico (condiviso in Visual Basic) di questo tipo è thread safe. Non è invece garantita la sicurezza dei membri dell'istanza.
Piattaforme
Piattaforme di sviluppo
Windows Vista, Windows 7 e Windows Server 2008
Piattaforme di destinazione
Vedere anche
Riferimento
Classe CloudException
Membri CloudException
Spazio dei nomi Microsoft.WindowsAzure