IVsMenuEditorSite::DeleteItem Method (IVsMenuItem^)

 

Deletes the given item.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int DeleteItem(
	IVsMenuItem^ pIMI
)

Parameters

pIMI
Type: Microsoft.VisualStudio.Shell.Interop::IVsMenuItem^

[In] A pointer to an object of type IVsMenuItem representing the menu item to delete.

Return Value

Type: System::Int32

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

From vsshell.idl:

[C++]

HRESULT IVsMenuEditorSite::DeleteItem(
   [in]IVsMenuItem *pIMI
);
Return to top
Show: