GetUIState Method
The document is archived and information here might be outdated

IVsMenuEditor.GetUIState Method

Returns the current UI state of the Menu Editor, giving the site a mechanism to know if the Menu Editor has any UI operations in progress.

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

Function GetUIState ( _
	<OutAttribute> ByRef pstate As UInteger _
) As Integer
Dim instance As IVsMenuEditor
Dim pstate As UInteger
Dim returnValue As Integer

returnValue = instance.GetUIState(pstate)
int GetUIState (
	/** @attribute OutAttribute() */ /** @ref */ UInt32 pstate
JScript does not support passing value-type arguments by reference.




Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.


From vsshell.idl:

HRESULT IVsMenuEditor::GetUIState([out, retval] VSMEUISTATE *pState);

© 2016 Microsoft