TaskAwaiter.IsCompleted 属性
定义
获取一个值,该值指示异步任务是否已完成。Gets a value that indicates whether the asynchronous task has completed.
此 API 支持产品基础结构,不能在代码中直接使用。
public:
property bool IsCompleted { bool get(); };
public bool IsCompleted { get; }
member this.IsCompleted : bool
Public ReadOnly Property IsCompleted As Boolean
属性值
如果该任务已完成,则为 true;否则为 false。true if the task has completed; otherwise, false.
例外
TaskAwaiter 对象未正确初始化。The TaskAwaiter object was not properly initialized.
注解
此类型及其成员旨在供编译器使用。This type and its members are intended for use by the compiler.