ReadResult 结构

定义

表示 ReadAsync(CancellationToken) 调用的结果。Represents the result of a ReadAsync(CancellationToken) call.

public value class ReadResult
public struct ReadResult
type ReadResult = struct
Public Structure ReadResult
继承
ReadResult

构造函数

ReadResult(ReadOnlySequence<Byte>, Boolean, Boolean)

创建 ReadResult 设置 IsCanceledIsCompleted 标志的新实例。Creates a new instance of ReadResult setting IsCanceled and IsCompleted flags.

属性

Buffer

获取读取的 ReadOnlySequence<T>Gets the ReadOnlySequence<T> that was read.

IsCanceled

获取一个值,该值指示是否已取消当前的 ReadAsync(CancellationToken) 操作。Gets a value that indicates whether the current ReadAsync(CancellationToken) operation was canceled.

IsCompleted

获取指示是否已到达数据流末尾的值。Gets a value that indicates whether the end of the data stream has been reached.

适用于