IVsCommandWindow.SetMode(COMMANDWINDOWMODE) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
);