IVsCommandWindow Interface

Definition

Enables the package to use the Command Window. You can get an instance of the interface from the SVsCommandWindow (SID_SVsCommandWindow) service.

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(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)]
public interface IVsCommandWindow
[<System.Runtime.InteropServices.ComConversionLoss>]
[<System.Runtime.InteropServices.Guid("0660CD86-F3AB-4008-930D-BAE8B10FF8CA")>]
[<System.Runtime.InteropServices.InterfaceType(1)>]
type IVsCommandWindow = interface
[<System.Runtime.InteropServices.ComConversionLoss>]
[<System.Runtime.InteropServices.Guid("0660CD86-F3AB-4008-930D-BAE8B10FF8CA")>]
[<System.Runtime.InteropServices.InterfaceType(System.Runtime.InteropServices.ComInterfaceType.InterfaceIsIUnknown)>]
type IVsCommandWindow = interface
Public Interface IVsCommandWindow
Attributes

Remarks

You can set the mode of the Command Window with the IVsCommandWindow2 interface.

Methods

Create()

Creates the tool window and the text buffer for the CommandWindow.

EchoCommand(String)

Echoes the specified command to the command window the next time text is printed in the command window using the Print(String) method.

ExecuteCommand(String)

Executes the specified command.

LogToFile(String, UInt32)

Starts logging command-window commands and output to the specified file.

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

Performs all the steps to prepare to execute a command-line command.

Print(String)

Prints the specified text to the command window. The command window will be shown if it is not already visible.

PrintNoShow(String)

Does the same thing as Print(String) but does not show or activate the command window.

RunningCommandWindowCommand(Int32)

Indicates whether or not a command invoked through the command window is currently executing.

SetCurrentLanguageService(Guid)

Sets the language service for the Command Window to use in the current debugging context.

SetMode(COMMANDWINDOWMODE)

Sets the command window to immediate mode or command mode.

Show()

Makes the Command Window visible and gives it the focus. Also creates the window, if necessary.

StopLogging()

Stops the logging started with LogToFile(String, UInt32).

Applies to