Partager via


ObservableObject.NotifyPropertyChanged(String) Method

Definition

The method that is called when a property has changed.

void NotifyPropertyChanged(std::wstring const & propertyName = "");
protected void NotifyPropertyChanged (string propertyName = "");
member this.NotifyPropertyChanged : string -> unit
Protected Sub NotifyPropertyChanged (Optional propertyName As String = "")

Parameters

propertyName
String

The CallerMemberName attribute that is applied to the optional propertyName parameter causes the property name of the caller to be substituted as an argument.

Remarks

This method is called by the Set accessor of each property.

Applies to