CodeGenerator.GenerateConstructor 方法

定義

為指定的建構子產生程式碼。

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

這個建構子所建構物件的類型。

適用於

另請參閱