ReadResult.IsCanceled 屬性

定義

取得值,其指出 CancelPendingRead() 是否已取消目前的 ReadAsync(CancellationToken) 作業。

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

屬性值

true如果產生此作業 ReadAsync(CancellationToken) 的作業已由 取消 CancelPendingRead() ,則為 ,否則為 falseReadResult

適用於