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

'Déclaration
Function OnChange ( _
    pIMI As IVsMenuItem, _
    propid As Integer _
) As Integer
'Utilisation
Dim instance As IVsMenuEditor
Dim pIMI As IVsMenuItem
Dim propid As Integer
Dim returnValue As Integer

returnValue = instance.OnChange(pIMI, _
    propid)
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

Return Value

Type: System.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

IVsMenuEditor Members

Microsoft.VisualStudio.Shell.Interop Namespace