Compartir a través de


WebResponseObject Constructors

Definition

Overloads

WebResponseObject(HttpResponseMessage)

Initializes a new instance of the WebResponseObject class.

WebResponseObject(WebResponse)

Constructor for WebResponseObject

WebResponseObject(HttpResponseMessage, Stream)

Initializes a new instance of the WebResponseObject class with the specified contentStream.

WebResponseObject(WebResponse, Stream)

Constructor for WebResponseObject with contentStream

WebResponseObject(HttpResponseMessage, TimeSpan, CancellationToken)

Initializes a new instance of the WebResponseObject class.

WebResponseObject(HttpResponseMessage, Stream, TimeSpan, CancellationToken)

Initializes a new instance of the WebResponseObject class with the specified contentStream.

WebResponseObject(HttpResponseMessage)

Initializes a new instance of the WebResponseObject class.

public WebResponseObject (System.Net.Http.HttpResponseMessage response);
new Microsoft.PowerShell.Commands.WebResponseObject : System.Net.Http.HttpResponseMessage -> Microsoft.PowerShell.Commands.WebResponseObject
Public Sub New (response As HttpResponseMessage)

Parameters

Applies to

WebResponseObject(WebResponse)

Constructor for WebResponseObject

public WebResponseObject (System.Net.WebResponse response);
new Microsoft.PowerShell.Commands.WebResponseObject : System.Net.WebResponse -> Microsoft.PowerShell.Commands.WebResponseObject
Public Sub New (response As WebResponse)

Parameters

response
WebResponse

Applies to

WebResponseObject(HttpResponseMessage, Stream)

Initializes a new instance of the WebResponseObject class with the specified contentStream.

public WebResponseObject (System.Net.Http.HttpResponseMessage response, System.IO.Stream contentStream);
new Microsoft.PowerShell.Commands.WebResponseObject : System.Net.Http.HttpResponseMessage * System.IO.Stream -> Microsoft.PowerShell.Commands.WebResponseObject
Public Sub New (response As HttpResponseMessage, contentStream As Stream)

Parameters

contentStream
Stream

Applies to

WebResponseObject(WebResponse, Stream)

Constructor for WebResponseObject with contentStream

public WebResponseObject (System.Net.WebResponse response, System.IO.Stream contentStream);
new Microsoft.PowerShell.Commands.WebResponseObject : System.Net.WebResponse * System.IO.Stream -> Microsoft.PowerShell.Commands.WebResponseObject
Public Sub New (response As WebResponse, contentStream As Stream)

Parameters

response
WebResponse
contentStream
Stream

Applies to

WebResponseObject(HttpResponseMessage, TimeSpan, CancellationToken)

Initializes a new instance of the WebResponseObject class.

public WebResponseObject (System.Net.Http.HttpResponseMessage response, TimeSpan perReadTimeout, System.Threading.CancellationToken cancellationToken);
new Microsoft.PowerShell.Commands.WebResponseObject : System.Net.Http.HttpResponseMessage * TimeSpan * System.Threading.CancellationToken -> Microsoft.PowerShell.Commands.WebResponseObject
Public Sub New (response As HttpResponseMessage, perReadTimeout As TimeSpan, cancellationToken As CancellationToken)

Parameters

response
HttpResponseMessage

The Http response.

perReadTimeout
TimeSpan

Time permitted between reads or Timeout.InfiniteTimeSpan for no timeout.

cancellationToken
CancellationToken

The cancellation token.

Applies to

WebResponseObject(HttpResponseMessage, Stream, TimeSpan, CancellationToken)

Initializes a new instance of the WebResponseObject class with the specified contentStream.

public WebResponseObject (System.Net.Http.HttpResponseMessage response, System.IO.Stream? contentStream, TimeSpan perReadTimeout, System.Threading.CancellationToken cancellationToken);
new Microsoft.PowerShell.Commands.WebResponseObject : System.Net.Http.HttpResponseMessage * System.IO.Stream * TimeSpan * System.Threading.CancellationToken -> Microsoft.PowerShell.Commands.WebResponseObject
Public Sub New (response As HttpResponseMessage, contentStream As Stream, perReadTimeout As TimeSpan, cancellationToken As CancellationToken)

Parameters

response
HttpResponseMessage

Http response.

contentStream
Stream

The http content stream.

perReadTimeout
TimeSpan

Time permitted between reads or Timeout.InfiniteTimeSpan for no timeout.

cancellationToken
CancellationToken

The cancellation token.

Applies to