共用方式為


IVsHierarchyItemIdentity.IsNestedItem Property

Gets whether this item is a nested item or not.

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

Syntax

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

Property Value

Type: Boolean
true if the item is a nested item, otherwise false.

Remarks

A nested item has a different Hierarchy / ItemID and NestedHierarchy / NestedItemID representing two item identifiers that are logically the same item. Non-nested items have identical Hierarchy / ItemID and NestedHierarchy / NestedItemID.

.NET Framework Security

See Also

Reference

IVsHierarchyItemIdentity Interface

Microsoft.VisualStudio.Shell Namespace