Compartilhar via


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)

Syntax

'Declaration
Function GetUIState ( _
    <OutAttribute> ByRef pstate As UInteger _
) As Integer
int GetUIState(
    out uint pstate
)
int GetUIState(
    [OutAttribute] unsigned int% pstate
)
abstract GetUIState : 
        pstate:uint32 byref -> int
function GetUIState(
    pstate : uint
) : int

Parameters

  • pstate
    Type: UInt32%

    [out, retval] The current UI state of the Menu Editor.

Return Value

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

Remarks

C++

From vsshell.idl:

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

.NET Framework Security

See Also

Reference

IVsMenuEditor Interface

Microsoft.VisualStudio.Shell.Interop Namespace