AxHost.ContextMenuChanged 事件

定义

AxHost 类不支持 ContextMenuChanged 事件。The ContextMenuChanged event is not supported by the AxHost class.

public:
 event EventHandler ^ ContextMenuChanged;
[System.ComponentModel.Browsable(false)]
public event EventHandler ContextMenuChanged;
[<System.ComponentModel.Browsable(false)>]
member this.ContextMenuChanged : EventHandler 
Public Custom Event ContextMenuChanged As EventHandler 

事件类型

EventHandler
属性

注解

如果尝试添加或移除事件的处理程序,则 ContextMenuChanged NotSupportedException 会引发。If you attempt to add or remove a handler for the ContextMenuChanged event, a NotSupportedException is thrown. Control类不支持派生自类的事件 AxHostThe events derived from the Control class are not supported by the AxHost class. 创建包装时,ActiveX 控件公开的事件 AxHost 是应使用的事件。The events exposed by the ActiveX control when the AxHost wrapper is created are the events that should be used.

适用于