RequiresContextItemAttribute-Klasse
Aktualisiert: November 2007
Gibt an, dass die Klasse auf dem angegebenen Kontext basiert.
Namespace: Microsoft.Windows.Design
Assembly: Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)
Syntax
<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
Hinweise
Sie können RequiresContextItemAttribute auf alle Featureanbieter und alle Featureconnectoren anwenden oder Klassen auswählen, die von Featureanbietern bereitgestellt werden. Die Klasse wird erst dann instanziiert, wenn alle erforderlichen Kontextelemente verfügbar sind.
Vererbungshierarchie
System.Object
System.Attribute
Microsoft.Windows.Design.RequirementAttribute
Microsoft.Windows.Design.RequiresContextItemAttribute
Threadsicherheit
Alle öffentlichen static (Shared in Visual Basic)-Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.
Siehe auch
Referenz
RequiresContextItemAttribute-Member
Microsoft.Windows.Design-Namespace
FeatureConnector<TFeatureProviderType>