IVsUIShell.UpdateCommandUI Method (Int32)
Visual Studio 2015
Informs the environment to update the state of the command bars (menus and toolbars).
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- fImmediateUpdate
-
Type:
System.Int32
[in] true if the update is performed synchronously (immediately). It is strongly recommended to pass false for this parameter.
Return Value
Type: System.Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsUIShell::UpdateCommandUI(
[in] BOOL fImmediateUpdate
);
This method is equivalent to UpdateUI. It causes the environment to re-query by means of IOleCommandTarget the state of all commands. Typically, the update is not performed immediately but rather delayed until idle time.
Show: