IVsMenuEditor::OnChange Method (IVsMenuItem^, Int32)

 

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)

int OnChange(
	IVsMenuItem^ pIMI,
	int propid
)

Parameters

pIMI
Type: Microsoft.VisualStudio.Shell.Interop::IVsMenuItem^

[in] The menu item on which the property changed.

propid
Type: System::Int32

[in] The identifier of the property that changed.

Return Value

Type: System::Int32

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

C++

From vsshell.idl:

HRESULT IVsMenuEditor::OnChange([in]IVsMenuItem *pIMI, [in]VSMEPROPID PropId);

Return to top
Show: