VsShellUtilities.GetUIHierarchyWindow Method
Gets a window for the given GUID.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)
Syntax
'Declaração
Public Shared Function GetUIHierarchyWindow ( _
serviceProvider As IServiceProvider, _
guidPersistenceSlot As Guid _
) As IVsUIHierarchyWindow
public static IVsUIHierarchyWindow GetUIHierarchyWindow(
IServiceProvider serviceProvider,
Guid guidPersistenceSlot
)
Parameters
- serviceProvider
Type: System.IServiceProvider
IServiceProvider .
- 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
- 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.