Edit

Share via


ControlBuilder.ProcessGeneratedCode Method

Definition

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.

public:
 virtual void ProcessGeneratedCode(System::CodeDom::CodeCompileUnit ^ codeCompileUnit, System::CodeDom::CodeTypeDeclaration ^ baseType, System::CodeDom::CodeTypeDeclaration ^ derivedType, System::CodeDom::CodeMemberMethod ^ buildMethod, System::CodeDom::CodeMemberMethod ^ dataBindingMethod);
public virtual void ProcessGeneratedCode (System.CodeDom.CodeCompileUnit codeCompileUnit, System.CodeDom.CodeTypeDeclaration baseType, System.CodeDom.CodeTypeDeclaration derivedType, System.CodeDom.CodeMemberMethod buildMethod, System.CodeDom.CodeMemberMethod dataBindingMethod);
abstract member ProcessGeneratedCode : System.CodeDom.CodeCompileUnit * System.CodeDom.CodeTypeDeclaration * System.CodeDom.CodeTypeDeclaration * System.CodeDom.CodeMemberMethod * System.CodeDom.CodeMemberMethod -> unit
override this.ProcessGeneratedCode : System.CodeDom.CodeCompileUnit * System.CodeDom.CodeTypeDeclaration * System.CodeDom.CodeTypeDeclaration * System.CodeDom.CodeMemberMethod * System.CodeDom.CodeMemberMethod -> unit
Public Overridable Sub ProcessGeneratedCode (codeCompileUnit As CodeCompileUnit, baseType As CodeTypeDeclaration, derivedType As CodeTypeDeclaration, buildMethod As CodeMemberMethod, dataBindingMethod As CodeMemberMethod)

Parameters

codeCompileUnit
CodeCompileUnit

The root container of a CodeDOM graph of the control that is being built.

baseType
CodeTypeDeclaration

The base type of the page or user control that contains the control that is being built.

derivedType
CodeTypeDeclaration

The derived type of the page or user control that contains the control that is being built.

buildMethod
CodeMemberMethod

The code that is used to build the control.

dataBindingMethod
CodeMemberMethod

The code that is used to build the data-binding method of the control.

Remarks

In the single-file page model, the baseType and derivedType parameters are the same CodeTypeDeclaration type, which typically derives from the Page class.

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.

Applies to

See also