CodeGenerator.GenerateConstructor 方法

定義

為指定的建構函式 (Constructor) 產生程式碼。

protected:
 abstract void GenerateConstructor(System::CodeDom::CodeConstructor ^ e, System::CodeDom::CodeTypeDeclaration ^ c);
protected abstract void GenerateConstructor (System.CodeDom.CodeConstructor e, System.CodeDom.CodeTypeDeclaration c);
abstract member GenerateConstructor : System.CodeDom.CodeConstructor * System.CodeDom.CodeTypeDeclaration -> unit
Protected MustOverride Sub GenerateConstructor (e As CodeConstructor, c As CodeTypeDeclaration)

參數

e
CodeConstructor

要為其產生程式碼的建構函式。

c
CodeTypeDeclaration

這個建構函式所建構的物件型別。

適用於

另請參閱