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 microsoft.visualstudio.shell.interop.dll)

'Declaration
Function GetUIState ( _
	<OutAttribute> ByRef pstate As UInteger _
) As Integer
'Usage
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.

Parameters

pstate

[out]

Return Value

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

C++

From vsshell.idl:

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

Show:
© 2016 Microsoft