ControlBuilder.ProcessGeneratedCode(CodeCompileUnit, CodeTypeDeclaration, CodeTypeDeclaration, CodeMemberMethod, CodeMemberMethod) ControlBuilder.ProcessGeneratedCode(CodeCompileUnit, CodeTypeDeclaration, CodeTypeDeclaration, CodeMemberMethod, CodeMemberMethod) ControlBuilder.ProcessGeneratedCode(CodeCompileUnit, CodeTypeDeclaration, CodeTypeDeclaration, CodeMemberMethod, CodeMemberMethod) 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

Parameters

codeCompileUnit
CodeCompileUnit CodeCompileUnit CodeCompileUnit

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

baseType
CodeTypeDeclaration CodeTypeDeclaration CodeTypeDeclaration

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

derivedType
CodeTypeDeclaration CodeTypeDeclaration CodeTypeDeclaration

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

buildMethod
CodeMemberMethod CodeMemberMethod CodeMemberMethod

The code that is used to build the control.

dataBindingMethod
CodeMemberMethod CodeMemberMethod 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