IVsCommandWindow2.SetMode(UInt32) 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 mode of the Command Window tool window. Implemented by the environment.
public:
int SetMode(System::UInt32 mode);
public:
int SetMode(unsigned int mode);
int SetMode(unsigned int mode);
public int SetMode (uint mode);
abstract member SetMode : uint32 -> int
Public Function SetMode (mode As UInteger) As Integer
Parameters
- mode
- UInt32
[in] A value of type COMMANDWINDOWMODE indicating whether the command window should be set to immediate or command mode.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
The two values allowed for mode are:CWM_IMMEDIATE for immediate mode or CWM_COMMAND for command mode.
COM Signature
From vsshell.idl:
HRESULT IVsCommandWindow2::SetMode(
[in] COMMANDWINDOWMODE2 mode
);