Partager via


IVsMenuEditorSite.DeleteItem(IVsMenuItem) Method

Definition

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

Applies to