ModelItemExtensions.GetParentEnumerator Method (ModelItem, Func<ModelItem, Boolean>)

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

Retrieves an enumerator that contains the parents of the specified model item.

Namespace:  System.Activities.Design.ModelTree
Assembly:  System.Activities.Design (in System.Activities.Design.dll)


<ExtensionAttribute> _
Public Shared Function GetParentEnumerator ( _
    item As ModelItem, _
    continueEnumerationPredicate As Func(Of ModelItem, Boolean) _
) As IEnumerable(Of ModelItem)
Dim item As ModelItem
Dim continueEnumerationPredicate As Func(Of ModelItem, Boolean)
Dim returnValue As IEnumerable(Of ModelItem)

returnValue = item.GetParentEnumerator(continueEnumerationPredicate)
public static IEnumerable<ModelItem> GetParentEnumerator(
    this ModelItem item,
    Func<ModelItem, bool> continueEnumerationPredicate
static IEnumerable<ModelItem^>^ GetParentEnumerator(
    ModelItem^ item, 
    Func<ModelItem^, bool>^ continueEnumerationPredicate
public static function GetParentEnumerator(
    item : ModelItem, 
    continueEnumerationPredicate : Func<ModelItem, boolean>
) : IEnumerable<ModelItem>
static member GetParentEnumerator : 
        item:ModelItem * 
        continueEnumerationPredicate:Func<ModelItem, bool> -> IEnumerable<ModelItem> 


Return Value

Type: System.Collections.Generic.IEnumerable<ModelItem>
Returns an IEnumerable<T> that contains the parents. .

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ModelItem. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

.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


ModelItemExtensions Class

ModelItemExtensions Members

GetParentEnumerator Overload

System.Activities.Design.ModelTree Namespace