IVsMenuEditor.DeleteMenuItem(IVsMenuItem) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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);