HttpContent.ReadAsStream Method

Definition

Serializes the HTTP content and returns a stream that represents the content.

Overloads

ReadAsStream()

Serializes the HTTP content and returns a stream that represents the content.

ReadAsStream(CancellationToken)

Serializes the HTTP content and returns a stream that represents the content.

Remarks

Note that this method will internally buffer the content unless CreateContentReadStream(CancellationToken) has been implemented to do otherwise.

ReadAsStream()

Serializes the HTTP content and returns a stream that represents the content.

public:
 System::IO::Stream ^ ReadAsStream();
public System.IO.Stream ReadAsStream ();
member this.ReadAsStream : unit -> System.IO.Stream
Public Function ReadAsStream () As Stream

Returns

Stream

The stream that represents the HTTP content.

Applies to

ReadAsStream(CancellationToken)

Serializes the HTTP content and returns a stream that represents the content.

public:
 System::IO::Stream ^ ReadAsStream(System::Threading::CancellationToken cancellationToken);
public System.IO.Stream ReadAsStream (System.Threading.CancellationToken cancellationToken);
member this.ReadAsStream : System.Threading.CancellationToken -> System.IO.Stream
Public Function ReadAsStream (cancellationToken As CancellationToken) As Stream

Parameters

cancellationToken
CancellationToken

The cancellation token to cancel the operation.

Returns

Stream

The stream that represents the HTTP content.

Applies to