HttpResponseException(String, HttpResponseMessage) Constructor

Definition

Initializes a new instance of the HttpResponseException class.

public HttpResponseException (string message, System.Net.Http.HttpResponseMessage response);
new Microsoft.PowerShell.Commands.HttpResponseException : string * System.Net.Http.HttpResponseMessage -> Microsoft.PowerShell.Commands.HttpResponseException
Public Sub New (message As String, response As HttpResponseMessage)

Parameters

message
String

Message for the exception.

response
HttpResponseMessage

Response from the HTTP server.

Applies to