NotifyPropertyChangedForAttribute Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| NotifyPropertyChangedForAttribute(String) |
Initializes a new instance of the NotifyPropertyChangedForAttribute class. |
| NotifyPropertyChangedForAttribute(String, String[]) |
Initializes a new instance of the NotifyPropertyChangedForAttribute class. |
NotifyPropertyChangedForAttribute(String)
Initializes a new instance of the NotifyPropertyChangedForAttribute class.
public NotifyPropertyChangedForAttribute(string propertyName);
new CommunityToolkit.Mvvm.ComponentModel.NotifyPropertyChangedForAttribute : string -> CommunityToolkit.Mvvm.ComponentModel.NotifyPropertyChangedForAttribute
Public Sub New (propertyName As String)
Parameters
- propertyName
- String
The name of the property to also notify when the annotated property changes.
Applies to
NotifyPropertyChangedForAttribute(String, String[])
Initializes a new instance of the NotifyPropertyChangedForAttribute class.
public NotifyPropertyChangedForAttribute(string propertyName, params string[] otherPropertyNames);
new CommunityToolkit.Mvvm.ComponentModel.NotifyPropertyChangedForAttribute : string * string[] -> CommunityToolkit.Mvvm.ComponentModel.NotifyPropertyChangedForAttribute
Public Sub New (propertyName As String, ParamArray otherPropertyNames As String())
Parameters
- propertyName
- String
The name of the property to also notify when the annotated property changes.
- otherPropertyNames
- String[]
The other property names to also notify when the annotated property changes. This parameter can optionally be used to indicate a series of dependent properties from the same attribute, to keep the code more compact.