Share via


ContextItemManager.Contains<ItemType> 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 (in Microsoft.Windows.Design.dll)

Syntax

'Declaration
Public Function Contains(Of ItemType As ContextItem) As Boolean
'Usage
Dim instance As ContextItemManager 
Dim returnValue As Boolean 

returnValue = instance.Contains()
public bool Contains<ItemType>()
where ItemType : ContextItem
public:
generic<typename ItemType>
where ItemType : ContextItem 
bool Contains()
JScript does not support generic types or methods.

Type Parameters

  • ItemType
    The type of item to check.

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

ContextItemManager Members

Contains Overload

Microsoft.Windows.Design Namespace

ContextItem

SubscribeContextCallback<ContextItemType>

ServiceManager

FeatureManager

Other Resources

Editing Context Architecture

Understanding WPF Designer Extensibility