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.
When overridden in a derived class, 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 MustOverride Function Contains ( _
itemType As Type _
) As Boolean
public abstract bool Contains(
Type itemType
)
public:
virtual bool Contains(
Type^ itemType
) abstract
abstract Contains :
itemType:Type -> bool
public abstract function Contains(
itemType : Type
) : boolean
Parameters
- itemType
Type: System.Type
The type of item to check.
Return Value
Type: System.Boolean
true if the context contains an instance of this item type; otherwise, false.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | itemType is nulla null reference (Nothing in Visual Basic). |
.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>