HierarchyNode.FindChildByProjectElement Method
Finds a non-virtual hierarchy element (a node with a build item) by its project element.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Function FindChildByProjectElement ( _
node As ProjectElement _
) As HierarchyNode
'使用
Dim instance As HierarchyNode
Dim node As ProjectElement
Dim returnValue As HierarchyNode
returnValue = instance.FindChildByProjectElement(node)
public HierarchyNode FindChildByProjectElement(
ProjectElement node
)
public:
HierarchyNode^ FindChildByProjectElement(
ProjectElement^ node
)
public function FindChildByProjectElement(
node : ProjectElement
) : HierarchyNode
Parameters
node
Type: Microsoft.VisualStudio.Package.ProjectElementThe project element to find.
Return Value
Type: Microsoft.VisualStudio.Package.HierarchyNode
The node if found; otherwise, a null reference (Nothing in Visual Basic).
Remarks
This method iterates through all the children of the present node to find the relevant node.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.