共用方式為


IVsHierarchyItemIdentity.IsRoot Property

Gets whether the item is the root of its IVsHierarchy.

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

Syntax

'Declaration
ReadOnly Property IsRoot As Boolean
bool IsRoot { get; }
property bool IsRoot {
    bool get ();
}
abstract IsRoot : bool with get
function get IsRoot () : boolean

Property Value

Type: Boolean
true if the item is the root of a hierarchy, otherwise false.

Remarks

The root of a specific IVsHierarchy does not necessarily indicate the root of the entire tree.

.NET Framework Security

See Also

Reference

IVsHierarchyItemIdentity Interface

Microsoft.VisualStudio.Shell Namespace