Partager via


IVsMenuEditor.OnChange Method

Must be called by IMenuEditorSite if any property known by IVsMenuEditor changes on any menu item.

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

Syntax

'Declaration
Function OnChange ( _
    pIMI As IVsMenuItem, _
    propid As Integer _
) As Integer
int OnChange(
    IVsMenuItem pIMI,
    int propid
)
int OnChange(
    [InAttribute] IVsMenuItem^ pIMI, 
    [InAttribute] int propid
)
abstract OnChange : 
        pIMI:IVsMenuItem * 
        propid:int -> int
function OnChange(
    pIMI : IVsMenuItem, 
    propid : int
) : int

Parameters

  • propid
    Type: Int32

    [in] The identifier of the property that changed.

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::OnChange([in]IVsMenuItem *pIMI, [in]VSMEPROPID PropId);

.NET Framework Security

See Also

Reference

IVsMenuEditor Interface

Microsoft.VisualStudio.Shell.Interop Namespace