Partager via


IVsCommandWindow2.SetMode Method

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: UInt32

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

Return Value

Type: 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

See Also

Reference

IVsCommandWindow2 Interface

Microsoft.VisualStudio.Shell.Interop Namespace