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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design Namespace
SubscribeContextCallback<TContextItemType>