AsyncObservableObject.NotifyPropertyChangedAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
通知对此对象上的属性的更改。 在 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
已更改属性的名称。
返回
引发事件后将完成的任务 PropertyChanged 。