更新: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