Package.CreateToolWindow Method (Guid, Int32)

Visual Studio 2015
 

Creates a tool window of the specified type with the specified ID.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

protected virtual int CreateToolWindow(
	ref Guid toolWindowType,
	int id
)

Parameters

toolWindowType
Type: System.Guid

The GUID of the tool window type.

id
Type: System.Int32

The instance ID or 0 for single instance tool windows

Return Value

Type: System.Int32

S_OK if the window creation succeeded, otherwise a failure HRESULT.

Return to top
Show: