This documentation is archived and is not being maintained.

IVsMenuEditor.DeleteMenuItem Method

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int DeleteMenuItem (
	[InAttribute] IVsMenuItem pIMI
)
int DeleteMenuItem (
	/** @attribute InAttribute() */ IVsMenuItem pIMI
)
function DeleteMenuItem (
	pIMI : IVsMenuItem
) : int

Parameters

pIMI

[in]

Return Value

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

Show: