RequiresContextItemAttribute - класс
Обновлен: Ноябрь 2007
Указывает, что класс основывается на заданном контексте.
Пространство имен: 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 (Shared в Visual Basic), являются потокобезопасными. Потокобезопасность членов экземпляров не гарантируется.
См. также
Ссылки
RequiresContextItemAttribute - члены
Microsoft.Windows.Design - пространство имен
FeatureConnector<TFeatureProviderType>