次の方法で共有


FlavoredProject.GetNestedHierarchy Method

Determines whether or not a node is a nested hierarchy.

Namespace:  Microsoft.VisualStudio.Shell.Flavor
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.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
'使用
Dim itemId As UInteger
Dim guidHierarchyNested As Guid
Dim hierarchyNested As IntPtr
Dim itemIdNested As UInteger
Dim returnValue As Integer

returnValue = Me.GetNestedHierarchy(itemId, _
    guidHierarchyNested, hierarchyNested, _
    itemIdNested)
protected virtual int GetNestedHierarchy(
    uint itemId,
    ref Guid guidHierarchyNested,
    out IntPtr hierarchyNested,
    out uint itemIdNested
)
protected:
virtual int GetNestedHierarchy(
    unsigned int itemId, 
    Guid% guidHierarchyNested, 
    [OutAttribute] IntPtr% hierarchyNested, 
    [OutAttribute] unsigned int% itemIdNested
)
abstract GetNestedHierarchy : 
        itemId:uint32 * 
        guidHierarchyNested:Guid byref * 
        hierarchyNested:IntPtr byref * 
        itemIdNested:uint32 byref -> int 
override GetNestedHierarchy : 
        itemId:uint32 * 
        guidHierarchyNested:Guid byref * 
        hierarchyNested:IntPtr byref * 
        itemIdNested:uint32 byref -> int 
protected function GetNestedHierarchy(
    itemId : uint, 
    guidHierarchyNested : Guid, 
    hierarchyNested : IntPtr, 
    itemIdNested : uint
) : int

Parameters

  • 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. 

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

See Also

Reference

FlavoredProject Class

FlavoredProject Members

Microsoft.VisualStudio.Shell.Flavor Namespace