다음을 통해 공유


RequiresContextItemAttribute 클래스

업데이트: 2007년 11월

클래스가 지정된 컨텍스트에 의존함을 지정합니다.

네임스페이스:  Microsoft.Windows.Design
어셈블리:  Microsoft.Windows.Design.Extensibility(Microsoft.Windows.Design.Extensibility.dll)

구문

<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True)> _
Public NotInheritable Class RequiresContextItemAttribute _
    Inherits RequirementAttribute

Dim instance As RequiresContextItemAttribute
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true)]
public sealed class RequiresContextItemAttribute : RequirementAttribute
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true)]
public ref class RequiresContextItemAttribute sealed : public RequirementAttribute
public final class RequiresContextItemAttribute extends RequirementAttribute

설명

모든 기능 공급자, 기능 커넥터 또는 기능 공급자가 제공하는 선택 클래스에 RequiresContextItemAttribute를 적용할 수 있습니다. 필요한 모든 컨텍스트 항목을 사용할 수 있게 되기 전에는 클래스가 인스턴스화되지 않습니다.

상속 계층 구조

System.Object
  System.Attribute
    Microsoft.Windows.Design.RequirementAttribute
      Microsoft.Windows.Design.RequiresContextItemAttribute

스레드로부터의 안전성

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

참고 항목

참조

RequiresContextItemAttribute 멤버

Microsoft.Windows.Design 네임스페이스

RequiresServiceAttribute

UsesItemPolicyAttribute

FeatureProvider

FeatureConnector<TFeatureProviderType>

기타 리소스

기능 공급자 및 기능 커넥터

WPF Designer 확장성 이해