IVsMonitorSelection.SetCmdUIContext Method
Sets the state of the command UI context to active or inactive.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- dwCmdUICookie
- Type: System.UInt32
[in] DWORD representation of the GUID identifying the command UI context passed as the rguidCmdUI parameter in the call to GetCmdUIContextCookie.
- fActive
- Type: System.Int32
[out] Flag that is set to true if the command UI context should be set to active and false if it should be set to inactive.
Return Value
Type: System.Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
- 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.