Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- 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<ContextItemType>