VsShellUtilities.GetUIHierarchyWindow Method

Gets a window for the given GUID.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

‘선언
Public Shared Function GetUIHierarchyWindow ( _
    serviceProvider As IServiceProvider, _
    guidPersistenceSlot As Guid _
) As IVsUIHierarchyWindow
‘사용 방법
Dim serviceProvider As IServiceProvider
Dim guidPersistenceSlot As Guid
Dim returnValue As IVsUIHierarchyWindow

returnValue = VsShellUtilities.GetUIHierarchyWindow(serviceProvider, _
    guidPersistenceSlot)
public static IVsUIHierarchyWindow GetUIHierarchyWindow(
    IServiceProvider serviceProvider,
    Guid guidPersistenceSlot
)
public:
static IVsUIHierarchyWindow^ GetUIHierarchyWindow(
    IServiceProvider^ serviceProvider, 
    Guid guidPersistenceSlot
)
static member GetUIHierarchyWindow : 
        serviceProvider:IServiceProvider * 
        guidPersistenceSlot:Guid -> IVsUIHierarchyWindow 
public static function GetUIHierarchyWindow(
    serviceProvider : IServiceProvider, 
    guidPersistenceSlot : Guid
) : IVsUIHierarchyWindow

Parameters

  • guidPersistenceSlot
    Type: System.Guid
    The GUID of the hierarchy window.

Return Value

Type: Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchyWindow
IVsUIHierarchyWindow.

Remarks

The guidPersistenceSlot parameter is the unique identifier for a tool window that is created by using CreateToolWindow. The caller of this method can also use predefined identifiers that map to tool windows if those tool windows are known to the caller.

.NET Framework Security

See Also

Reference

VsShellUtilities Class

VsShellUtilities Members

Microsoft.VisualStudio.Shell Namespace