ModelItemCollection.Contains Method

Definition

Determines whether the ModelItemCollection contains the specified element.

Overloads

Contains(ModelItem)

Determines whether the ModelItemCollection contains the specified element.

Contains(Object)

Determines whether the ModelItemCollection contains the specified element.

Contains(ModelItem)

Determines whether the ModelItemCollection contains the specified element.

C#
public abstract bool Contains(System.Activities.Presentation.Model.ModelItem item);

Parameters

item
ModelItem

The value to locate in the collection.

Returns

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

Implements

Exceptions

item is null.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Contains(Object)

Determines whether the ModelItemCollection contains the specified element.

C#
public abstract bool Contains(object value);

Parameters

value
Object

The value to locate in the collection.

Returns

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

Exceptions

value is null.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1