CodeGenerator.GenerateEvent(CodeMemberEvent, CodeTypeDeclaration) 方法

定义

为指定的事件生成代码。

protected:
 abstract void GenerateEvent(System::CodeDom::CodeMemberEvent ^ e, System::CodeDom::CodeTypeDeclaration ^ c);
protected abstract void GenerateEvent (System.CodeDom.CodeMemberEvent e, System.CodeDom.CodeTypeDeclaration c);
abstract member GenerateEvent : System.CodeDom.CodeMemberEvent * System.CodeDom.CodeTypeDeclaration -> unit
Protected MustOverride Sub GenerateEvent (e As CodeMemberEvent, c As CodeTypeDeclaration)

参数

e
CodeMemberEvent

要为其生成代码的成员事件。

c
CodeTypeDeclaration

发生此事件的对象的类型。

适用于

另请参阅