共用方式為


ControlBuilderInterceptor.OnProcessGeneratedCode 方法

定義

ControlBuilder 已完成產生程式碼之後呼叫。

public:
 virtual void OnProcessGeneratedCode(System::Web::UI::ControlBuilder ^ controlBuilder, System::CodeDom::CodeCompileUnit ^ codeCompileUnit, System::CodeDom::CodeTypeDeclaration ^ baseType, System::CodeDom::CodeTypeDeclaration ^ derivedType, System::CodeDom::CodeMemberMethod ^ buildMethod, System::CodeDom::CodeMemberMethod ^ dataBindingMethod, System::Collections::IDictionary ^ additionalState);
public virtual void OnProcessGeneratedCode (System.Web.UI.ControlBuilder controlBuilder, System.CodeDom.CodeCompileUnit codeCompileUnit, System.CodeDom.CodeTypeDeclaration baseType, System.CodeDom.CodeTypeDeclaration derivedType, System.CodeDom.CodeMemberMethod buildMethod, System.CodeDom.CodeMemberMethod dataBindingMethod, System.Collections.IDictionary additionalState);
abstract member OnProcessGeneratedCode : System.Web.UI.ControlBuilder * System.CodeDom.CodeCompileUnit * System.CodeDom.CodeTypeDeclaration * System.CodeDom.CodeTypeDeclaration * System.CodeDom.CodeMemberMethod * System.CodeDom.CodeMemberMethod * System.Collections.IDictionary -> unit
override this.OnProcessGeneratedCode : System.Web.UI.ControlBuilder * System.CodeDom.CodeCompileUnit * System.CodeDom.CodeTypeDeclaration * System.CodeDom.CodeTypeDeclaration * System.CodeDom.CodeMemberMethod * System.CodeDom.CodeMemberMethod * System.Collections.IDictionary -> unit
Public Overridable Sub OnProcessGeneratedCode (controlBuilder As ControlBuilder, codeCompileUnit As CodeCompileUnit, baseType As CodeTypeDeclaration, derivedType As CodeTypeDeclaration, buildMethod As CodeMemberMethod, dataBindingMethod As CodeMemberMethod, additionalState As IDictionary)

參數

controlBuilder
ControlBuilder

控制項產生器執行個體。

codeCompileUnit
CodeCompileUnit

編譯所產生的 CodeCompileUnit 物件。

baseType
CodeTypeDeclaration

程式碼後置類別或衍生型別的型別宣告。

derivedType
CodeTypeDeclaration

最上層標記項目的型別宣告。

buildMethod
CodeMemberMethod

用來建立控制項並設定控制項的各種屬性、事件、欄位的方法 (包含所需的程式碼)。

dataBindingMethod
CodeMemberMethod

用來評估控制項內之資料繫結運算式的方法 (包含程式碼)。

additionalState
IDictionary

可用來儲存和擷取類別數個方法 ControlBuilderInterceptor 內資料的額外狀態。

適用於