Table of contents
TOC
折叠目录
展开目录

此组件不支持此事件组(错误 459)This component doesn't support this set of events (Error 459)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

不是每一个组件都支持客户端接收事件。此错误具有以下原因和解决方案:Not every component supports client sinking of events. This error has the following cause and solution:

  • 您尝试使用WithEvents变量不能为组指定事件的事件源的组件。例如,您可能会接收事件的对象,然后创建另一个对象用于实现的第一个对象。尽管您可能认为无法实现的对象接收的事件,这不是自动的情况。实现只实现一个接口的方法和属性。不能接收事件不源事件的组件。You tried to use a WithEvents variable with a component that can't work as an event source for the specified set of events. For example, you may be sinking events of an object, then create another object that Implements the first object. Although you might think you could sink the events from the implemented object, that isn't automatically the case. Implements only implements an interface for methods and properties. You can't sink events for a component that doesn't source events.

  • WithEvents不支持专用用户控件,因为需要引发 ObjectEvent 类型信息不在运行时可用。WithEvents isn't supported for Private UserControls, because the type-info needed to raise the ObjectEvent isn't available at runtime.

有关其他信息,请选择相关项并按 F1(在 Windows 中)或 HELP(在 Macintosh 上)。For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).

© 2018 Microsoft