ReadResult ReadResult ReadResult ReadResult Struct

定義

ReadAsync(CancellationToken) 呼叫的結果。The result of a ReadAsync(CancellationToken) call.

public value class ReadResult
public struct ReadResult
type ReadResult = struct
Public Structure ReadResult
繼承
ReadResultReadResultReadResultReadResult

建構函式

ReadResult(ReadOnlySequence<Byte>, Boolean, Boolean) ReadResult(ReadOnlySequence<Byte>, Boolean, Boolean) ReadResult(ReadOnlySequence<Byte>, Boolean, Boolean) ReadResult(ReadOnlySequence<Byte>, Boolean, Boolean)

建立 ReadResult 設定 IsCanceled 的新執行個體和 IsCompleted 旗標。Creates a new instance of ReadResult setting IsCanceled and IsCompleted flags.

屬性

Buffer Buffer Buffer Buffer

取得已讀取的 ReadOnlySequence<T>Gets the ReadOnlySequence<T> that was read.

IsCanceled IsCanceled IsCanceled IsCanceled

如果目前的 ReadAsync(CancellationToken) 作業已取消,則為 true,否則為 falsetrue if the current ReadAsync(CancellationToken) operation was canceled; otherwise, false.

IsCompleted IsCompleted IsCompleted IsCompleted

如果 PipeReader 完成,則為 true;否則為 falsetrue if the PipeReader is complete; otherwise, false.

適用於