AsyncObservableObject.NotifyPropertyChangedAsync 方法

定义

通知对此对象上的属性的更改。 在 PropertyChanged 主线程上引发事件。

protected System.Threading.Tasks.Task NotifyPropertyChangedAsync (System.Threading.CancellationToken cancellationToken = default, string propertyName = "");
member this.NotifyPropertyChangedAsync : System.Threading.CancellationToken * string -> System.Threading.Tasks.Task
Protected Function NotifyPropertyChangedAsync (Optional cancellationToken As CancellationToken = Nothing, Optional propertyName As String = "") As Task

参数

cancellationToken
CancellationToken

取消标记。

propertyName
String

已更改属性的名称。

返回

Task

引发事件后将完成的任务 PropertyChanged

适用于