ContextItemManager.Contains Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

When overridden in a derived class, returns a Boolean value that indicates whether the item manager contains an item of the specified type.

Namespace:  System.Activities.Design
Assembly:  System.Activities.Design.Base (in System.Activities.Design.Base.dll)


Public MustOverride Function Contains ( _
    itemType As Type _
) As Boolean
Dim instance As ContextItemManager
Dim itemType As Type
Dim returnValue As Boolean

returnValue = instance.Contains(itemType)
public abstract bool Contains(
    Type itemType
virtual bool Contains(
    Type^ itemType
) abstract
public abstract function Contains(
    itemType : Type
) : boolean
abstract Contains : 
        itemType:Type -> bool 


  • itemType
    Type: System.Type
    The type of item to check.

Return Value

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


Exception Condition

itemType is nulla null reference (Nothing in Visual Basic).

.NET Framework Security


Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 4

See Also


ContextItemManager Class

ContextItemManager Members

System.Activities.Design Namespace