Partager via


IVsCommandWindow2.SetMode(UInt32) Method

Definition

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  
);  

Applies to