This documentation is archived and is not being maintained.

ControlBuilder::ProcessGeneratedCode Method

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 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.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5 SP1, 3.0 SP1, 2.0 SP1
Show: