CodeDomEventBindingService 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重要
此 API 不符合 CLS。
用于生成事件处理代码的服务。
public ref class CodeDomEventBindingService abstract : System::ComponentModel::Design::EventBindingService
[System.CLSCompliant(false)]
[System.Security.SecurityCritical]
public abstract class CodeDomEventBindingService : System.ComponentModel.Design.EventBindingService
[<System.CLSCompliant(false)>]
[<System.Security.SecurityCritical>]
type CodeDomEventBindingService = class
inherit EventBindingService
Public MustInherit Class CodeDomEventBindingService
Inherits EventBindingService
- 继承
-
CodeDomEventBindingService
- 属性
构造函数
| CodeDomEventBindingService(IServiceProvider) |
初始化 CodeDomEventBindingService 的新实例。 |
属性
| CodeDomAdapter |
获取代码 DOM 数据适配器。 |
方法
| CreateUniqueMethodName(IComponent, EventDescriptor) |
为事件创建唯一的方法名称。 |
| FreeMethod(IComponent, EventDescriptor, String) |
如果事件处理程序没有使用指定的方法,并且它为空,则从代码中删除该方法。 |
| GetCompatibleMethods(EventDescriptor) |
获取代码 DOM 中与指定的事件说明符兼容的所有方法。 |
| ShowCode() |
在编辑器窗口中的文档数据中显示代码。 |
| ShowCode(IComponent, EventDescriptor, String) |
显示具有给定方法名称和事件说明符的用户代码的正文。 |
| ShowCode(Int32) |
显示位于指定行的代码。 |
| UseMethod(IComponent, EventDescriptor, String) |
为给定的方法名称和事件描述符创建方法声明。 |
| ValidateMethodName(String) |
验证方法的名称。 |