CloudException.Create Method (HttpRequestMessage, String, HttpResponseMessage, String, CloudExceptionType, Exception)
Note: This API is now obsolete.Namespace:
Microsoft.WindowsAzure
Assembly: Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)
Return to top
Create a CloudException from a failed response. This method is obsolete. Use Create without defaultTo parameter.
Assembly: Microsoft.WindowsAzure.Common (in Microsoft.WindowsAzure.Common.dll)
<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
Parameters
- request
-
Type:
System.Net.Http.HttpRequestMessage
The HTTP request.
- requestContent
-
Type:
System.String
The HTTP request content.
- response
-
Type:
System.Net.Http.HttpResponseMessage
The HTTP response.
- responseContent
-
Type:
System.String
The HTTP response content.
- defaultTo
-
Type:
Microsoft.WindowsAzure.CloudExceptionType
The content type to default to if none of the types matches.
- innerException
-
Type:
System.Exception
Optional inner exception.
Show: