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 。