ModelItemCollection.Contains Method (ModelItem)
[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)
Syntax
'Declaration
Public MustOverride Function Contains ( _
item As ModelItem _
) As Boolean
'Usage
Dim instance As ModelItemCollection
Dim item As ModelItem
Dim returnValue As Boolean
returnValue = instance.Contains(item)
public abstract bool Contains(
ModelItem item
)
public:
virtual bool Contains(
ModelItem^ item
) abstract
public abstract function Contains(
item : ModelItem
) : boolean
abstract Contains :
item:ModelItem -> bool
Parameters
- item
Type: System.Activities.Design.Model.ModelItem
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.
Implements
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | item 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.
Platforms
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