ReadResult.IsCanceled 属性

定义

获取一个值,该值指示当前 ReadAsync(CancellationToken) 操作是否已被 CancelPendingRead() 取消。

public:
 property bool IsCanceled { bool get(); };
public bool IsCanceled { get; }
member this.IsCanceled : bool
Public ReadOnly Property IsCanceled As Boolean

属性值

trueReadAsync(CancellationToken)如果生成此ReadResult操作的操作已被CancelPendingRead()取消,则为 ;否则为 false

适用于