Package.GetOutputPane 方法

获取请求的 " 输出 " 窗口中。

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

语法

声明
Public Function GetOutputPane ( _
    page As Guid, _
    caption As String _
) As IVsOutputWindowPane
public IVsOutputWindowPane GetOutputPane(
    Guid page,
    string caption
)

参数

  • page
    类型:System.Guid
    与 pane 对应的 GUID。(对于对应于输出窗格。) 的 GUID 参见 VSConstants
  • caption
    类型:System.String
    创建的说明,如果窗格不存在。

返回值

类型:Microsoft.VisualStudio.Shell.Interop.IVsOutputWindowPane
IVsOutputWindowPane 接口。在失败时返回 nullnull 引用(在 Visual Basic 中为 Nothing) 。

备注

GetOutputPane 方法返回请求的输出窗口窗格。,否则,此方法创建窗格。

.NET Framework 安全性

请参见

参考

Package 类

Microsoft.VisualStudio.Shell 命名空间