FlavoredProject.GetNestedHierarchy Method
Determines whether or not a node is a nested hierarchy.
Namespace: Microsoft.VisualStudio.Shell.Flavor
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'宣告
Protected Overridable Function GetNestedHierarchy ( _
itemId As UInteger, _
ByRef guidHierarchyNested As Guid, _
<OutAttribute> ByRef hierarchyNested As IntPtr, _
<OutAttribute> ByRef itemIdNested As UInteger _
) As Integer
protected virtual int GetNestedHierarchy(
uint itemId,
ref Guid guidHierarchyNested,
out IntPtr hierarchyNested,
out uint itemIdNested
)
Parameters
- itemId
Type: System.UInt32
The item ID of the node.
- guidHierarchyNested
Type: System.Guid%
The interface ID of the node.
- hierarchyNested
Type: System.IntPtr%
[out] Returns a pointer to the node, if it is a nested hierarchy node.
- itemIdNested
Type: System.UInt32%
[out] Returns the item ID of the nested hierarchy node; this will always be VSITEMID_ROOT.
Return Value
Type: System.Int32
If itemid is not a nested hierarchy node, this method returns [F:Microsoft.VisualStudio.VSConstants.][E_FAIL]. If the requested interface is not supported on the hierarchy object, [F:Microsoft.VisualStudio.VSConstants.][E_NOINTERFACE] is returned. The caller would then treat this node as if it had no children.
Remarks
This method calls GetNestedHierarchy on the inner project.
.NET Framework Security
- 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.