IVsUIShell.UpdateCommandUI Method (Int32)

 

Informs the environment to update the state of the command bars (menus and toolbars).

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

Function UpdateCommandUI (
	fImmediateUpdate As Integer
) As Integer

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.Int32

If 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.

Return to top
Show: