Share via


IVsCommandWindow.EchoCommand(String) Method

Definition

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

public:
 int EchoCommand(System::String ^ szCommand);
public:
 int EchoCommand(Platform::String ^ szCommand);
int EchoCommand(std::wstring const & szCommand);
public int EchoCommand (string szCommand);
abstract member EchoCommand : string -> int
Public Function EchoCommand (szCommand As String) As Integer

Parameters

szCommand
String

[in] String containing the command.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsCommandWindow::EchoCommand(  
   [in, ref] LPCOLESTR szCommand  
);  

Applies to