Share via


IVsCommandWindow.SetMode(COMMANDWINDOWMODE) Method

Definition

Sets the command window to immediate mode or command mode.

public:
 int SetMode(Microsoft::VisualStudio::Shell::Interop::COMMANDWINDOWMODE mode);
public:
 int SetMode(Microsoft::VisualStudio::Shell::Interop::COMMANDWINDOWMODE mode);
int SetMode(Microsoft::VisualStudio::Shell::Interop::COMMANDWINDOWMODE mode);
public int SetMode (Microsoft.VisualStudio.Shell.Interop.COMMANDWINDOWMODE mode);
abstract member SetMode : Microsoft.VisualStudio.Shell.Interop.COMMANDWINDOWMODE -> int
Public Function SetMode (mode As COMMANDWINDOWMODE) As Integer

Parameters

mode
COMMANDWINDOWMODE

[in] A value of type COMMANDWINDOWMODE setting the command window to immediate or command mode.

Returns

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

Remarks

The mode argument must be either CWM_IMMEDIATE or CWM_COMMAND.

COM Signature

From vsshell.idl:

HRESULT IVsCommandWindow::SetMode(  
   [in] COMMANDWINDOWMODE mode  
);  

Applies to