Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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.

System.Object
   System.Attribute
      System.ComponentModel.NotifyParentPropertyAttribute

[Visual Basic]
<AttributeUsage(AttributeTargets.Property)>
NotInheritable Public Class NotifyParentPropertyAttribute
   Inherits Attribute
[C#]
[AttributeUsage(AttributeTargets.Property)]
public sealed class NotifyParentPropertyAttribute : Attribute
[C++]
[AttributeUsage(AttributeTargets::Property)]
public __gc __sealed class NotifyParentPropertyAttribute : public
   Attribute
[JScript]
public
   AttributeUsage(AttributeTargets.Property)
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.

Remarks

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.

Requirements

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

Show:
© 2015 Microsoft