OutputWindow 接口

更新:2007 年 11 月

表示集成开发环境 (IDE) 中的“输出”窗口。

命名空间:  EnvDTE
程序集:  EnvDTE(在 EnvDTE.dll 中)

语法

声明
<GuidAttribute("EAB0A63D-C3A8-496E-9ACF-A82CEF6A43B3")> _
Public Interface OutputWindow
用法
Dim instance As OutputWindow
[GuidAttribute("EAB0A63D-C3A8-496E-9ACF-A82CEF6A43B3")]
public interface OutputWindow
[GuidAttribute(L"EAB0A63D-C3A8-496E-9ACF-A82CEF6A43B3")]
public interface class OutputWindow
public interface OutputWindow

备注

“输出”窗口显示各种 IDE 工具的文本输出。每个工具可能使用不同的输出窗口窗格。使用窗口顶部的下拉框选择窗格。例如,生成错误在“生成错误”窗格中显示,每个外部命令工具可能在其专有的输出窗口窗格中显示。

示例

Sub OutputWindowExample()
   ' Create a tool window handle for the Output window.
   Dim win As Window = DTE.Windows.Item(EnvDTE.Constants.vsWindowKindOutput)
   ' Create handles to the Output window and its panes.
   Dim OW As OutputWindow = win.Object
   Dim OWp As OutputWindowPane

   ' Add a new pane to the Output window.
   OWp = OW.OutputWindowPanes.Add("A New Pane")
   ' Add a line of text to the new pane.
   OWp.OutputString("Some Text")
End Sub

另请参见

参考

OutputWindow 成员

EnvDTE 命名空间