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.

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

public:
virtual void ProcessGeneratedCode(
	CodeCompileUnit^ codeCompileUnit,
	CodeTypeDeclaration^ baseType,
	CodeTypeDeclaration^ derivedType,
	CodeMemberMethod^ buildMethod,
	CodeMemberMethod^ dataBindingMethod
)

Parameters

codeCompileUnit
Type: System.CodeDom::CodeCompileUnit^

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

baseType
Type: System.CodeDom::CodeTypeDeclaration^

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

derivedType
Type: System.CodeDom::CodeTypeDeclaration^

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

buildMethod
Type: System.CodeDom::CodeMemberMethod^

The code that is used to build the control.

dataBindingMethod
Type: System.CodeDom::CodeMemberMethod^

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

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.

.NET Framework
Available since 2.0
Return to top
Show: