Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Gets a tool window.
Namespace: Microsoft.VisualStudio.Modeling.Shell
Assembly: Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)
Syntax
'Declaration
Public Function GetToolWindow ( _
toolWindowType As Type, _
forceCreate As Boolean _
) As ToolWindow
public ToolWindow GetToolWindow(
Type toolWindowType,
bool forceCreate
)
public:
ToolWindow^ GetToolWindow(
Type^ toolWindowType,
bool forceCreate
)
member GetToolWindow :
toolWindowType:Type *
forceCreate:bool -> ToolWindow
public function GetToolWindow(
toolWindowType : Type,
forceCreate : boolean
) : ToolWindow
Parameters
- toolWindowType
Type: System.Type
The type of tool window to retrieve.
- forceCreate
Type: System.Boolean
true to return only tool windows that belong to the Domain-Specific Language Designer package; otherwise, false.
Return Value
Type: Microsoft.VisualStudio.Modeling.Shell.ToolWindow
The tool window or null if no tool window is returned.
Remarks
Only single-instance tool windows are supported. Therefore, a 1:1 mapping always results.
When the forceCreate parameter is true, IVsToolWindowFactory creates the tool window. For more information, see IVsToolWindowFactory.
.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.