Share via


IVsMenuEditor.DeleteMenuItem(IVsMenuItem) Method

Definition

Deletes the specified menu item.

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

Parameters

pIMI
IVsMenuItem

[in] The menu item to delete.

Returns

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

Remarks

C++

From vsshell.idl:

HRESULT IVsMenuEditor::DeleteMenuItem([in]IVsMenuItem *pIMI);

Applies to