Share via


ContextItemManager.Contains<TItemType> Method

Returns a value indicating whether the context item manager contains an item of the specified type.

Namespace:  Microsoft.Windows.Design
Assembly:  Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)

Syntax

'Declaration
Public Function Contains(Of TItemType As ContextItem) As Boolean
public bool Contains<TItemType>()
where TItemType : ContextItem
public:
generic<typename TItemType>
where TItemType : ContextItem
bool Contains()
member Contains : unit -> bool  when 'TItemType : ContextItem
JScript does not support generic types or methods.

Type Parameters

  • TItemType

Return Value

Type: System.Boolean
true if the context contains an instance of this item type; otherwise, false.

.NET Framework Security

See Also

Reference

ContextItemManager Class

Contains Overload

Microsoft.Windows.Design Namespace

ContextItem

SubscribeContextCallback<TContextItemType>

ServiceManager

FeatureManager

Other Resources

Editing Context Architecture

Understanding WPF Designer Extensibility