共用方式為


IVsHierarchyItem.Parent Property

Gets the parent IVsHierarchyItem for this item.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.Immutable.11.0 (in Microsoft.VisualStudio.Shell.Immutable.11.0.dll)

Syntax

'宣告
ReadOnly Property Parent As IVsHierarchyItem
IVsHierarchyItem Parent { get; }

Property Value

Type: Microsoft.VisualStudio.Shell.IVsHierarchyItem
The parent hierarchy item for this item, or null if the item is at the root of the IVsUIHierarchyWindow.

.NET Framework Security

See Also

Reference

IVsHierarchyItem Interface

Microsoft.VisualStudio.Shell Namespace