ControlBuilder.ProcessGeneratedCode Method (CodeCompileUnit, CodeTypeDeclaration, CodeTypeDeclaration, CodeMemberMethod, CodeMemberMethod)
Enables custom control builders to access the generated Code Document Object Model (CodeDom) and insert and modify code during the process of parsing and building controls.
Assembly: System.Web (in System.Web.dll)
public virtual void ProcessGeneratedCode( CodeCompileUnit codeCompileUnit, CodeTypeDeclaration baseType, CodeTypeDeclaration derivedType, CodeMemberMethod buildMethod, CodeMemberMethod dataBindingMethod )
The root container of a CodeDOM graph of the control that is being built.
The base type of the page or user control that contains the control that is being built.
The derived type of the page or user control that contains the control that is being built.
The code that is used to build the control.
The code that is used to build the data-binding method of the control.
In the code-behind page model, baseType is the CodeTypeDeclaration type that represents the partial code-behind class, which is typically derived from the Page class. The derivedType parameter is the class that derives from the partial class that contains the markup.
For more information about ASP.NET Web page models, see ASP.NET Web Forms Page Syntax Overview.
For more information about how to use the CodeDOM to represent and generate source code, see Dynamic Source Code Generation and Compilation.
Available since 2.0