共用方式為


ReadResult(ReadOnlySequence<Byte>, Boolean, Boolean) 建構函式

定義

建立 ReadResult 設定 IsCanceled 的新執行個體和 IsCompleted 旗標。

public:
 ReadResult(System::Buffers::ReadOnlySequence<System::Byte> buffer, bool isCanceled, bool isCompleted);
public ReadResult (System.Buffers.ReadOnlySequence<byte> buffer, bool isCanceled, bool isCompleted);
new System.IO.Pipelines.ReadResult : System.Buffers.ReadOnlySequence<byte> * bool * bool -> System.IO.Pipelines.ReadResult
Public Sub New (buffer As ReadOnlySequence(Of Byte), isCanceled As Boolean, isCompleted As Boolean)

參數

buffer
ReadOnlySequence<Byte>

唯讀序列,其中包含在 ReadAsync(CancellationToken) 呼叫中讀取的資料位元組。

isCanceled
Boolean

旗標,指出 CancelPendingRead() 是否已取消產生此 ReadResultReadAsync(CancellationToken) 作業。

isCompleted
Boolean

旗標,其指出是否已到達資料流結尾。

適用於