CloudException.CreateFromXml Method (HttpRequestMessage, String, HttpResponseMessage, String, Exception)
Note: This API is now obsolete.
Creates a CloudException from a failed response that was sent using XML.
Namespace: Microsoft.WindowsAzure
Assembly: Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)
Syntax
[ObsoleteAttribute("This method is obsolete. Use Create without defaultTo parameter.")]
public static CloudException CreateFromXml(
HttpRequestMessage request,
string requestContent,
HttpResponseMessage response,
string responseContent,
Exception innerException = null
)
public:
[ObsoleteAttribute("This method is obsolete. Use Create without defaultTo parameter.")]
static CloudException^ CreateFromXml(
HttpRequestMessage^ request,
String^ requestContent,
HttpResponseMessage^ response,
String^ responseContent,
Exception^ innerException = null
)
[<ObsoleteAttribute("This method is obsolete. Use Create without defaultTo parameter.")>]
static member CreateFromXml :
request:HttpRequestMessage *
requestContent:string *
response:HttpResponseMessage *
responseContent:string *
innerException:Exception = null -> CloudException
<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,
innerException As Exception
) As CloudException
Parameters
request
Type: System.Net.Http.HttpRequestMessageThe HTTP request.
requestContent
Type: System.StringThe HTTP request content.
response
Type: System.Net.Http.HttpResponseMessageThe HTTP response.
responseContent
Type: System.StringThe HTTP response content.
innerException
Type: System.ExceptionThe inner exception.
Return Value
Type: Microsoft.WindowsAzure.CloudException
A CloudException that represents the failure.
See Also
CloudException Class
Microsoft.WindowsAzure Namespace
Return to top