次の方法で共有


PipelineResponse.BufferContent(CancellationToken) Method

Definition

Transfer the contents of the response network stream from ContentStream to a buffered cache on this PipelineResponse instance.

public abstract BinaryData BufferContent (System.Threading.CancellationToken cancellationToken = default);
abstract member BufferContent : System.Threading.CancellationToken -> BinaryData
Public MustOverride Function BufferContent (Optional cancellationToken As CancellationToken = Nothing) As BinaryData

Parameters

cancellationToken
CancellationToken

The CancellationToken to use while buffering the content.

Returns

The buffered content.

Remarks

This method will read the full content from the response content network stream into memory. Please be sure the contents will fit into memory before calling this method.

Applies to