CodeStatementCollection 建構函式

定義

初始化 CodeStatementCollection 類別的新執行個體。

多載

CodeStatementCollection()

初始化 CodeStatementCollection 類別的新執行個體。

CodeStatementCollection(CodeStatement[])

初始化 CodeStatementCollection 類別的新執行個體,這個執行個體包含 CodeStatement 物件的指定陣列。

CodeStatementCollection(CodeStatementCollection)

初始化 CodeStatementCollection 類別的新執行個體,這個執行個體包含指定之來源集合的元素。

CodeStatementCollection()

來源:
CodeStatementCollection.cs
來源:
CodeStatementCollection.cs
來源:
CodeStatementCollection.cs

初始化 CodeStatementCollection 類別的新執行個體。

public:
 CodeStatementCollection();
public CodeStatementCollection ();
Public Sub New ()

範例

下列範例示範如何建立 類別的 CodeStatementCollection 空白實例。

// Creates an empty CodeStatementCollection.
CodeStatementCollection^ collection = gcnew CodeStatementCollection;
// Creates an empty CodeStatementCollection.
CodeStatementCollection collection = new CodeStatementCollection();
' Creates an empty CodeStatementCollection.
Dim collection As New CodeStatementCollection

適用於

CodeStatementCollection(CodeStatement[])

來源:
CodeStatementCollection.cs
來源:
CodeStatementCollection.cs
來源:
CodeStatementCollection.cs

初始化 CodeStatementCollection 類別的新執行個體,這個執行個體包含 CodeStatement 物件的指定陣列。

public:
 CodeStatementCollection(cli::array <System::CodeDom::CodeStatement ^> ^ value);
public CodeStatementCollection (System.CodeDom.CodeStatement[] value);
new System.CodeDom.CodeStatementCollection : System.CodeDom.CodeStatement[] -> System.CodeDom.CodeStatementCollection
Public Sub New (value As CodeStatement())

參數

value
CodeStatement[]

用於初始化集合之 CodeStatement 物件的陣列。

例外狀況

valuenull

適用於

CodeStatementCollection(CodeStatementCollection)

來源:
CodeStatementCollection.cs
來源:
CodeStatementCollection.cs
來源:
CodeStatementCollection.cs

初始化 CodeStatementCollection 類別的新執行個體,這個執行個體包含指定之來源集合的元素。

public:
 CodeStatementCollection(System::CodeDom::CodeStatementCollection ^ value);
public CodeStatementCollection (System.CodeDom.CodeStatementCollection value);
new System.CodeDom.CodeStatementCollection : System.CodeDom.CodeStatementCollection -> System.CodeDom.CodeStatementCollection
Public Sub New (value As CodeStatementCollection)

參數

value
CodeStatementCollection

用來初始化集合的 CodeStatementCollection 物件。

例外狀況

valuenull

適用於