Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
'Declaration
Function OnChange ( _
pIMI As IVsMenuItem, _
propid As Integer _
) As Integer
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.