Läs på engelska Redigera

Dela via


StreamContent.CreateContentReadStream(CancellationToken) Method

Definition

Returns the HTTP stream as a read-only stream.

C#
protected override System.IO.Stream CreateContentReadStream(System.Threading.CancellationToken cancellationToken);

Parameters

cancellationToken
CancellationToken

The cancellation token to cancel the operation.

Returns

The HTTP content stream.

Exceptions

The cancellation token was canceled. This exception is stored into the returned task.

Applies to

Produkt Versioner
.NET 5, 6, 7, 8, 9, 10