IVsCommandWindow.SetMode Method (COMMANDWINDOWMODE)

 

Sets the command window to immediate mode or command mode.

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

int SetMode(
	COMMANDWINDOWMODE mode
)

Parameters

mode
Type: Microsoft.VisualStudio.Shell.Interop.COMMANDWINDOWMODE

[in] A value of type COMMANDWINDOWMODE setting the command window 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 mode argument must be either CWM_IMMEDIATE or CWM_COMMAND.

From vsshell.idl:

HRESULT IVsCommandWindow::SetMode(
   [in] COMMANDWINDOWMODE mode
);
Return to top
Show: