Partager via


ObservableObject.NotifyPropertyChanged Method

The method that is called when a property has changed.

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Protected Sub NotifyPropertyChanged ( _
    propertyName As String _
)
protected void NotifyPropertyChanged(
    string propertyName
)
protected:
void NotifyPropertyChanged(
    String^ propertyName
)
member NotifyPropertyChanged : 
        propertyName:string -> unit
protected function NotifyPropertyChanged(
    propertyName : String
)

Parameters

  • propertyName
    Type: 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.

.NET Framework Security

See Also

Reference

ObservableObject Class

Microsoft.VisualStudio.PlatformUI Namespace