다음을 통해 공유


NotifyParentPropertyAttribute 클래스

이 특성이 적용되는 속성 값이 수정될 때 부모 속성에 알리도록 지정합니다. 이 클래스는 상속될 수 없습니다.

네임스페이스: System.ComponentModel
어셈블리: System(system.dll)

구문

‘선언
<AttributeUsageAttribute(AttributeTargets.Property)> _
Public NotInheritable Class NotifyParentPropertyAttribute
    Inherits Attribute
‘사용 방법
Dim instance As NotifyParentPropertyAttribute
[AttributeUsageAttribute(AttributeTargets.Property)] 
public sealed class NotifyParentPropertyAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Property)] 
public ref class NotifyParentPropertyAttribute sealed : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Property) */ 
public final class NotifyParentPropertyAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Property) 
public final class NotifyParentPropertyAttribute extends Attribute

설명

속성 값의 변경 내용에 대한 알림을 부모 속성이 받아야 하는 경우 해당 속성에 NotifyParentPropertyAttribute를 적용합니다. 예를 들어, Size 속성에는 두 개의 중첩 속성, 높이 및 너비가 있습니다. 이 중첩 속성들은 해당 속성 값이 변경될 때 부모 속성에 해당 값을 업데이트하여 표시하라고 알리도록 **NotifyParentPropertyAttribute(true)**로 표시되어야 합니다.

특성 사용에 대한 자세한 내용은 특성을 사용하여 메타데이터 확장을 참조하십시오.

상속 계층 구조

System.Object
   System.Attribute
    System.ComponentModel.NotifyParentPropertyAttribute

스레드로부터의 안전성

이 형식의 모든 public static(Visual Basic의 경우 Shared) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

플랫폼

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1, 1.0에서 지원

참고 항목

참조

NotifyParentPropertyAttribute 멤버
System.ComponentModel 네임스페이스
Attribute