Gets a window for the given GUID.
Namespace: Microsoft.VisualStudio.Shell
Assembly: 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
)
public static function GetUIHierarchyWindow(
serviceProvider : IServiceProvider,
guidPersistenceSlot : Guid
) : IVsUIHierarchyWindow
Parameters
serviceProvider
Type: System.IServiceProvider
guidPersistenceSlot
Type: System.GuidThe GUID of the hierarchy window.
Return Value
Type: Microsoft.VisualStudio.Shell.Interop.IVsUIHierarchyWindow
Remarks
The guidPersistenceSlot parameter is the unique identifier for a tool window created 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.
Permissions
- 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.