Share via


AsyncObservableObject.NotifyPropertyChangedAsync Method

Definition

Notifies of a change to a property on this object. The PropertyChanged event is raised on the main thread.

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

Parameters

cancellationToken
CancellationToken

The cancellation token.

propertyName
String

The name of the property that changed.

Returns

A task that will complete once the PropertyChanged event has been raised.

Applies to