WebSiteCloudException.CreateFromXml Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create a CloudException from a failed response sending XML content.
public static Hyak.Common.CloudException CreateFromXml (System.Net.Http.HttpRequestMessage request, string requestContent, System.Net.Http.HttpResponseMessage response, string responseContent, Exception innerException = default);
static member CreateFromXml : System.Net.Http.HttpRequestMessage * string * System.Net.Http.HttpResponseMessage * string * Exception -> Hyak.Common.CloudException
Public Shared Function CreateFromXml (request As HttpRequestMessage, requestContent As String, response As HttpResponseMessage, responseContent As String, Optional innerException As Exception = Nothing) As CloudException
Parameters
- request
- HttpRequestMessage
The HTTP request.
- requestContent
- String
The HTTP request content.
- response
- HttpResponseMessage
The HTTP response.
- responseContent
- String
The HTTP response content.
- innerException
- Exception
Optional inner exception.
Returns
Hyak.Common.CloudException
A CloudException representing the failure.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET