IVsUIHierarchyWindow2.FindCommonSelectedHierarchy Method (UInt32, IVsUIHierarchy%)

Finds the lowermost hierarchy that is the nearest ancestor to every selected node.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Syntax

'Declaración
Function FindCommonSelectedHierarchy ( _
    grfOpt As UInteger, _
    <OutAttribute> ByRef lppCommonUIH As IVsUIHierarchy _
) As Integer
'Uso
Dim instance As IVsUIHierarchyWindow2
Dim grfOpt As UInteger
Dim lppCommonUIH As IVsUIHierarchy
Dim returnValue As Integer

returnValue = instance.FindCommonSelectedHierarchy(grfOpt, _
    lppCommonUIH)
int FindCommonSelectedHierarchy(
    uint grfOpt,
    out IVsUIHierarchy lppCommonUIH
)
int FindCommonSelectedHierarchy(
    [InAttribute] unsigned int grfOpt, 
    [OutAttribute] IVsUIHierarchy^% lppCommonUIH
)
abstract FindCommonSelectedHierarchy : 
        grfOpt:uint32 * 
        lppCommonUIH:IVsUIHierarchy byref -> int 
function FindCommonSelectedHierarchy(
    grfOpt : uint, 
    lppCommonUIH : IVsUIHierarchy
) : int

Parameters

  • grfOpt
    Type: System.UInt32
    [in] Controls whether this method returns the Solution as the common hierarchy. For a list of grfOpt values, see __VSCOMHIEROPTIONS.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

IVsUIHierarchyWindow.FindCommonSelectedHierarchy(UInt32, IVsUIHierarchy%)

Remarks

The UI hierarchy window contains a parent chain of hierarchies. If you select two or more nodes that reside in the same hierarchy, this method returns the parent of that hierarchy. Similarly, if you select nodes that reside in two different hierarchies, this method returns the parent of those two hierarchies.

.NET Framework Security

See Also

Reference

IVsUIHierarchyWindow2 Interface

IVsUIHierarchyWindow2 Members

FindCommonSelectedHierarchy Overload

Microsoft.VisualStudio.Shell.Interop Namespace