ReadResult ReadResult ReadResult ReadResult Struct

Definition

The result of a ReadAsync(CancellationToken) call.

public value class ReadResult
public struct ReadResult
type ReadResult = struct
Public Structure ReadResult
Inheritance
ReadResultReadResultReadResultReadResult

Constructors

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

Creates a new instance of ReadResult setting IsCanceled and IsCompleted flags.

Properties

Buffer Buffer Buffer Buffer

Gets the ReadOnlySequence<T> that was read.

IsCanceled IsCanceled IsCanceled IsCanceled

true if the current ReadAsync(CancellationToken) operation was canceled; otherwise, false.

IsCompleted IsCompleted IsCompleted IsCompleted

true if the PipeReader is complete; otherwise, false.

Applies to