ModelItemExtensions.FindParentModelItem Method

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

Determines the parent model item, based on the specified item and parent type.

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

Syntax

'Declaration
<ExtensionAttribute> _
Public Shared Function FindParentModelItem ( _
    item As ModelItem, _
    parentType As Type _
) As ModelItem
'Usage
Dim item As ModelItem
Dim parentType As Type
Dim returnValue As ModelItem

returnValue = item.FindParentModelItem(parentType)
public static ModelItem FindParentModelItem(
    this ModelItem item,
    Type parentType
)
[ExtensionAttribute]
public:
static ModelItem^ FindParentModelItem(
    ModelItem^ item, 
    Type^ parentType
)
public static function FindParentModelItem(
    item : ModelItem, 
    parentType : Type
) : ModelItem
static member FindParentModelItem : 
        item:ModelItem * 
        parentType:Type -> ModelItem 

Parameters

  • parentType
    Type: System.Type
    The parent type. This parameter cannot be nulla null reference (Nothing in Visual Basic).

Return Value

Type: System.Activities.Design.Model.ModelItem
Returns a ModelItem that contains the parent type.

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

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

See Also

Reference

ModelItemExtensions Class

ModelItemExtensions Members

System.Activities.Design.ModelTree Namespace