IVsMenuEditor::DeleteMenuItem Method (IVsMenuItem^)

 

Deletes the specified menu item.

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

int DeleteMenuItem(
	IVsMenuItem^ pIMI
)

Parameters

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

[in] 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.

C++

From vsshell.idl:

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

Return to top
Show: