Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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)
Syntax
'Declaration
Function SetMode ( _
mode As UInteger _
) As Integer
int SetMode(
uint mode
)
int SetMode(
[InAttribute] unsigned int mode
)
abstract SetMode :
mode:uint32 -> int
function SetMode(
mode : uint
) : int
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.
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
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.