IVsCommandWindow2::SetMode Method (UInt32)

 

Sets the mode of the Command Window tool window. Implemented by the environment.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)

int SetMode(
	unsigned int mode
)

Parameters

mode
Type: System::UInt32

[in] A value of type COMMANDWINDOWMODE indicating whether the command window should be set to immediate or command mode.

Return Value

Type: System::Int32

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

The two values allowed for mode are:CWM_IMMEDIATE for immediate mode or CWM_COMMAND for command mode.

From vsshell.idl:

HRESULT IVsCommandWindow2::SetMode(
   [in] COMMANDWINDOWMODE2 mode
);
Return to top
Show: