ModelItemCollection.Contains Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public:
abstract bool Contains(System::Activities::Presentation::Model::ModelItem ^ item);
public abstract bool Contains (System.Activities.Presentation.Model.ModelItem item);
abstract member Contains : System.Activities.Presentation.Model.ModelItem -> bool
Public MustOverride Function Contains (item As ModelItem) As Boolean
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
Contains(Object)
Determines whether the ModelItemCollection contains the specified element.
public:
abstract bool Contains(System::Object ^ value);
public abstract bool Contains (object value);
abstract member Contains : obj -> bool
Public MustOverride Function Contains (value As Object) As Boolean
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
.