IVsCommandWindow 接口

定义

使包可以使用 "命令" 窗口。 可以从 SVsCommandWindow (SID_SVsCommandWindow) 服务获取接口的实例。

public interface class IVsCommandWindow
public interface class IVsCommandWindow
__interface IVsCommandWindow
[System.Runtime.InteropServices.ComConversionLoss]
[System.Runtime.InteropServices.Guid("0660CD86-F3AB-4008-930D-BAE8B10FF8CA")]
[System.Runtime.InteropServices.InterfaceType(1)]
public interface IVsCommandWindow
[<System.Runtime.InteropServices.ComConversionLoss>]
[<System.Runtime.InteropServices.Guid("0660CD86-F3AB-4008-930D-BAE8B10FF8CA")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsCommandWindow = interface
Public Interface IVsCommandWindow
属性

注解

可以用接口设置 命令窗口 的模式 IVsCommandWindow2

方法

Create()

为命令创建工具窗口和文本缓冲区。

EchoCommand(String)

使用方法将下一次文本打印到命令窗口中时,将指定的命令回显到命令窗口 Print(String)

ExecuteCommand(String)

执行指定的命令。

LogToFile(String, UInt32)

开始将命令窗口命令和输出记录到指定文件。

PrepareCommand(String, Guid, UInt32, IntPtr, PREPARECOMMANDRESULT[])

执行准备执行命令行命令的所有步骤。

Print(String)

将指定的文本打印到命令窗口。 如果命令窗口尚未显示,则会显示该窗口。

PrintNoShow(String)

执行相同的操作, Print(String) 但不显示或激活命令窗口。

RunningCommandWindowCommand(Int32)

指示是否当前正在执行通过命令窗口调用的命令。

SetCurrentLanguageService(Guid)

设置要在当前调试上下文中使用的命令窗口的语言服务。

SetMode(COMMANDWINDOWMODE)

将命令窗口设置为即时模式或命令模式。

Show()

使命令窗口可见,并为其提供焦点。 如果需要,还会创建窗口。

StopLogging()

停止日志记录开始 LogToFile(String, UInt32)

适用于