共用方式為


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

已變更屬性的名稱。

傳回

一旦引發事件,就會完成的工作 PropertyChanged

適用於