IVsMenuEditor.OnChange Method
Must be called by IMenuEditorSite if any property known by IVsMenuEditor changes on any menu item.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaración
Function OnChange ( _
pIMI As IVsMenuItem, _
propid As Integer _
) As Integer
'Uso
Dim instance As IVsMenuEditor
Dim pIMI As IVsMenuItem
Dim propid As Integer
Dim returnValue As Integer
returnValue = instance.OnChange(pIMI, _
propid)
int OnChange(
IVsMenuItem pIMI,
int propid
)
int OnChange(
[InAttribute] IVsMenuItem^ pIMI,
[InAttribute] int propid
)
abstract OnChange :
pIMI:IVsMenuItem *
propid:int -> int
function OnChange(
pIMI : IVsMenuItem,
propid : int
) : int
Parameters
- pIMI
Type: Microsoft.VisualStudio.Shell.Interop.IVsMenuItem
[in]
- propid
Type: System.Int32
[in]
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
C++
From vsshell.idl:
HRESULT IVsMenuEditor::OnChange([in]IVsMenuItem *pIMI, [in]VSMEPROPID PropId);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.