NotifyParentPropertyAttribute Class
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.

NotifyParentPropertyAttribute Class

Indicates that the parent property is notified when the value of the property that this attribute is applied to is modified. This class cannot be inherited.

For a list of all members of this type, see NotifyParentPropertyAttribute Members.


[Visual Basic]
NotInheritable Public Class NotifyParentPropertyAttribute
   Inherits Attribute
public sealed class NotifyParentPropertyAttribute : Attribute
public __gc __sealed class NotifyParentPropertyAttribute : public
class NotifyParentPropertyAttribute extends Attribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Apply NotifyParentPropertyAttribute to a property if its parent property should receive notification of changes to the property's values. For example, the Size property has two nested properties: height and width. These nested properties should be marked with NotifyParentPropertyAttribute(true) so they notify the parent property to update its value and display when the property values change.

For more information about using attributes, see Extending Metadata Using Attributes.


Namespace: System.ComponentModel

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System (in System.dll)

See Also

NotifyParentPropertyAttribute Members | System.ComponentModel Namespace | Attribute

© 2016 Microsoft