Notifies clients when an item is added to the hierarchy.
Namespace: Microsoft.VisualStudio.Package
Assembly: MPF.Project.NonShipping (in MPF.Project.NonShipping.dll)
Syntax
'宣言
Public Sub OnItemAdded ( _
parent As HierarchyNode, _
child As HierarchyNode _
)
'使用
Dim instance As HierarchyNode
Dim parent As HierarchyNode
Dim child As HierarchyNode
instance.OnItemAdded(parent, child)
public void OnItemAdded(
HierarchyNode parent,
HierarchyNode child
)
public:
void OnItemAdded(
HierarchyNode^ parent,
HierarchyNode^ child
)
public function OnItemAdded(
parent : HierarchyNode,
child : HierarchyNode
)
Parameters
parent
Type: Microsoft.VisualStudio.Package.HierarchyNodeIdentifier of the parent, or root node of the hierarchy in which the item is added.
child
Type: Microsoft.VisualStudio.Package.HierarchyNodeIdentifier that indicates where the item is added in relation to other items (siblings) in the parent hierarchy.
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.