Compartir a través de


IVsMenuEditor.OnChange(IVsMenuItem, Int32) Method

Definition

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

public:
 int OnChange(Microsoft::VisualStudio::Shell::Interop::IVsMenuItem ^ pIMI, int propid);
public:
 int OnChange(Microsoft::VisualStudio::Shell::Interop::IVsMenuItem ^ pIMI, int propid);
int OnChange(Microsoft::VisualStudio::Shell::Interop::IVsMenuItem const & pIMI, int propid);
public int OnChange (Microsoft.VisualStudio.Shell.Interop.IVsMenuItem pIMI, int propid);
abstract member OnChange : Microsoft.VisualStudio.Shell.Interop.IVsMenuItem * int -> int
Public Function OnChange (pIMI As IVsMenuItem, propid As Integer) As Integer

Parameters

pIMI
IVsMenuItem

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

propid
Int32

[in] The identifier of the property that changed.

Returns

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);

Applies to