ControlBuilderInterceptor.OnProcessGeneratedCode 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在 ControlBuilder 完成代码生成后调用。
public:
virtual void OnProcessGeneratedCode(System::Web::UI::ControlBuilder ^ controlBuilder, System::CodeDom::CodeCompileUnit ^ codeCompileUnit, System::CodeDom::CodeTypeDeclaration ^ baseType, System::CodeDom::CodeTypeDeclaration ^ derivedType, System::CodeDom::CodeMemberMethod ^ buildMethod, System::CodeDom::CodeMemberMethod ^ dataBindingMethod, System::Collections::IDictionary ^ additionalState);
public virtual void OnProcessGeneratedCode (System.Web.UI.ControlBuilder controlBuilder, System.CodeDom.CodeCompileUnit codeCompileUnit, System.CodeDom.CodeTypeDeclaration baseType, System.CodeDom.CodeTypeDeclaration derivedType, System.CodeDom.CodeMemberMethod buildMethod, System.CodeDom.CodeMemberMethod dataBindingMethod, System.Collections.IDictionary additionalState);
abstract member OnProcessGeneratedCode : System.Web.UI.ControlBuilder * System.CodeDom.CodeCompileUnit * System.CodeDom.CodeTypeDeclaration * System.CodeDom.CodeTypeDeclaration * System.CodeDom.CodeMemberMethod * System.CodeDom.CodeMemberMethod * System.Collections.IDictionary -> unit
override this.OnProcessGeneratedCode : System.Web.UI.ControlBuilder * System.CodeDom.CodeCompileUnit * System.CodeDom.CodeTypeDeclaration * System.CodeDom.CodeTypeDeclaration * System.CodeDom.CodeMemberMethod * System.CodeDom.CodeMemberMethod * System.Collections.IDictionary -> unit
Public Overridable Sub OnProcessGeneratedCode (controlBuilder As ControlBuilder, codeCompileUnit As CodeCompileUnit, baseType As CodeTypeDeclaration, derivedType As CodeTypeDeclaration, buildMethod As CodeMemberMethod, dataBindingMethod As CodeMemberMethod, additionalState As IDictionary)
参数
- controlBuilder
- ControlBuilder
控件生成器实例。
- codeCompileUnit
- CodeCompileUnit
由编译生成的 CodeCompileUnit 对象。
- baseType
- CodeTypeDeclaration
类或派生的类型后面的代码的类型声明。
- derivedType
- CodeTypeDeclaration
顶级标记元素的类型声明。
- buildMethod
- CodeMemberMethod
具有某个代码的方法,这个代码是创建控件和设置控件的各种属性、事件和字段时所必需的。
- dataBindingMethod
- CodeMemberMethod
具有某种代码的方法,这种代码用于计算控件内的数据绑定表达式。
- additionalState
- IDictionary
可用于在 类的 ControlBuilderInterceptor 多个方法中存储和检索数据的其他状态。