IVsMenuEditorSite.DeleteItem(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 given item.
public:
int DeleteItem(Microsoft::VisualStudio::Shell::Interop::IVsMenuItem ^ pIMI);
public:
int DeleteItem(Microsoft::VisualStudio::Shell::Interop::IVsMenuItem ^ pIMI);
int DeleteItem(Microsoft::VisualStudio::Shell::Interop::IVsMenuItem const & pIMI);
public int DeleteItem (Microsoft.VisualStudio.Shell.Interop.IVsMenuItem pIMI);
abstract member DeleteItem : Microsoft.VisualStudio.Shell.Interop.IVsMenuItem -> int
Public Function DeleteItem (pIMI As IVsMenuItem) As Integer
Parameters
- pIMI
- IVsMenuItem
[In] A pointer to an object of type IVsMenuItem representing the menu item to delete.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
[C++]
HRESULT IVsMenuEditorSite::DeleteItem(
[in]IVsMenuItem *pIMI
);