ערוך

שתף באמצעות


ModelService.Find Method

Definition

Finds matching model items given a starting point from which to look.

Overloads

Find(ModelItem, Predicate<Type>)

Finds matching model items given a starting point from which to look.

Find(ModelItem, Type)

Finds matching model items given a starting point from which to look.

Remarks

All walks are recursive.

Find(ModelItem, Predicate<Type>)

Finds matching model items given a starting point from which to look.

public:
 abstract System::Collections::Generic::IEnumerable<System::Activities::Presentation::Model::ModelItem ^> ^ Find(System::Activities::Presentation::Model::ModelItem ^ startingItem, Predicate<Type ^> ^ match);
public abstract System.Collections.Generic.IEnumerable<System.Activities.Presentation.Model.ModelItem> Find (System.Activities.Presentation.Model.ModelItem startingItem, Predicate<Type> match);
abstract member Find : System.Activities.Presentation.Model.ModelItem * Predicate<Type> -> seq<System.Activities.Presentation.Model.ModelItem>
Public MustOverride Function Find (startingItem As ModelItem, match As Predicate(Of Type)) As IEnumerable(Of ModelItem)

Parameters

startingItem
ModelItem

The ModelItem from which to start the search. Items above this item will be ignored. This item, and any item below it in the hierarchy, will be included in the search. If this value is null, Root is used instead.

match
Predicate<Type>

A predicate that allows more complex type matching to be used. This method will enumerate all items within the given parent scope that match the predicate.

Returns

An IEnumerable<T> that contains all model items that match the query.

Exceptions

match is null.

Remarks

All walks are recursive.

Applies to

Find(ModelItem, Type)

Finds matching model items given a starting point from which to look.

public:
 abstract System::Collections::Generic::IEnumerable<System::Activities::Presentation::Model::ModelItem ^> ^ Find(System::Activities::Presentation::Model::ModelItem ^ startingItem, Type ^ type);
public abstract System.Collections.Generic.IEnumerable<System.Activities.Presentation.Model.ModelItem> Find (System.Activities.Presentation.Model.ModelItem startingItem, Type type);
abstract member Find : System.Activities.Presentation.Model.ModelItem * Type -> seq<System.Activities.Presentation.Model.ModelItem>
Public MustOverride Function Find (startingItem As ModelItem, type As Type) As IEnumerable(Of ModelItem)

Parameters

startingItem
ModelItem

The ModelItem from which to start the search. Items above this item will be ignored. This item, and any item below it in the hierarchy, will be included in the search. If this value is null, Root is used instead.

type
Type

The Type of the object to find. This method will enumerate all items within the given parent scope that are of the requested type.

Returns

An IEnumerable<T> that contains all model items that match the query.

Exceptions

type is null.

Remarks

All walks are recursive.

Applies to