Export (0) Print
Expand All

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

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5 SP1, 3.0 SP1, 2.0 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Show:
© 2014 Microsoft