This documentation is archived and is not being maintained.

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

int GetUIState (
	out uint 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);