Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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] The menu item on which the property changed.
propid
Type: Int32[in] The identifier of the property that changed.
Return Value
Type: 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.