ModelingPackage.GetToolWindow 方法 (Type)

获取工具窗口。

命名空间:  Microsoft.VisualStudio.Modeling.Shell
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0(在 Microsoft.VisualStudio.Modeling.Sdk.Shell.11.0.dll 中)

语法

声明
Public Function GetToolWindow ( _
    toolWindowType As Type _
) As ToolWindow
public ToolWindow GetToolWindow(
    Type toolWindowType
)

参数

  • toolWindowType
    类型:System.Type
    工具窗口的类型检索的。

返回值

类型:Microsoft.VisualStudio.Modeling.Shell.ToolWindow
工具窗口或空,则工具窗口没有返回。

备注

单实例仅工具窗口支持。因此,始终映射结果为 1:1。

.NET Framework 安全性

请参见

参考

ModelingPackage 类

GetToolWindow 重载

Microsoft.VisualStudio.Modeling.Shell 命名空间