Class NotifyPropertyChangedAttribute
Custom attribute that, when applied on a type, implements the INotifyPropertyChanged interface for this class and all children classes.
Inheritance
Implements
Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Model.dll
Syntax
[MulticastAttributeUsage]
[ProvideAspectRole("DataBinding")]
[AspectRoleDependency]
[AspectRoleDependency]
[AspectRoleDependency]
[AspectTypeDependency]
[AspectRoleDependency]
[AspectRoleDependency]
[Metric("UsedFeatures", "PostSharp.Patterns.Model.NotifyPropertyChanged")]
[IntroduceInterface]
[IntroduceInterface]
[IntroduceInterface]
[HasConstraint]
[Serializer]
public sealed class NotifyPropertyChangedAttribute : InstanceLevelAspect, ITypeLevelAspect, ITypeLevelAspectBuildSemantics, IAspectBuildSemantics, IValidableAnnotation, ICloneAwareAspect, IInstanceScopedAspect, ISerializationCallback, INotifyChildPropertyChanged, IAdviceProvider, IAspect, IQueryInterface, IDynamicInterfaceImplementation, ILicensedAspect
Constructors
Name | Description |
---|---|
NotifyPropertyChangedAttribute() | Initializes a new instance of the NotifyPropertyChangedAttribute class that stores strong references to the client delegates. |
NotifyPropertyChangedAttribute(PortableFormatterConstructorContext) |
Fields
Properties
Name | Description |
---|---|
AdvisedObject | |
ExcludeExplicitProperties | Determines whether the aspect should instrument only automatic properties and ignore any other. This mode allows to use only the abilities of PostSharp Essentials, and prevent the aspect from consuming premium features. |
PreventFalsePositives | Determines whether the aspect should do additional efforts to prevent the PropertyChanged event from being
raised when the value itself did not change. The default value of this property is |
WeakEventStrategy | Determines how the PropertyChanged event behaves in terms of keeping weak or strong references. |
Methods
Events
Name | Description |
---|---|
ChildPropertyChanged | |
ChildPropertyChanging | |
PropertyChanged |
Explicit Interface Implementations
Name | Description |
---|---|
IAdviceProvider.ProvideAdvices(Object) | |
ILicensedAspect.GetLicenseRequirements() | |
ISerializationCallback.OnDeserialized() | |
ISerializationCallback.OnSerializing() |