ModelItemCollection.Contains Method (Object)

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

Determines whether the ModelItemCollection contains the specified element.

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


Public MustOverride Function Contains ( _
    value As Object _
) As Boolean
Dim instance As ModelItemCollection
Dim value As Object
Dim returnValue As Boolean

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


  • value
    Type: System.Object
    The value to locate in the collection.

Return Value

Type: System.Boolean
true if the ModelItemCollection contains an element that has the specified value; otherwise, false.


Exception Condition

value 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


ModelItemCollection Class

ModelItemCollection Members

Contains Overload

System.Activities.Design.Model Namespace