Enables derived classes to provide an implementation if necessary.
Assembly: Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
'Declaration Public Function CreateTool ( _ ByRef persistenceSlot As Guid _ ) As Integer
public int CreateTool( ref Guid persistenceSlot )
public: virtual int CreateTool( Guid% persistenceSlot ) sealed
abstract CreateTool : persistenceSlot:Guid byref -> int override CreateTool : persistenceSlot:Guid byref -> int
public final function CreateTool( persistenceSlot : Guid ) : int
The GUID of the tool window that should be created.
Override the CreateTool method in your VSPackage.
The base implementation of the CreateTool method has no effect on the VSPackage. It is provided so that derived classes can provide an implementation if necessary.
Tool windows can be configured to be persistent. If a persistent tool window is open when the environment is shut down, it is automatically reopened the next time the environment is launched. To reopen Tool windows automatically when the environment is launched, pass CTW_ForceCreate to CreateToolWindow.
This method should not make the Tool window visible; that is, it should not call Show method.
.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.