CodeStatementCollection 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 CodeStatementCollection 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| CodeStatementCollection() |
初始化 CodeStatementCollection 類別的新執行個體。 |
| CodeStatementCollection(CodeStatement[]) |
初始化包含指定物件陣列CodeStatementCollection的類別新實例CodeStatement。 |
| CodeStatementCollection(CodeStatementCollection) |
初始化包含指定原始集合元素的類別新實例 CodeStatementCollection 。 |
CodeStatementCollection()
初始化 CodeStatementCollection 類別的新執行個體。
public:
CodeStatementCollection();
public CodeStatementCollection();
Public Sub New ()
範例
以下範例說明如何建立該類別的空實例 CodeStatementCollection 。
// Creates an empty CodeStatementCollection.
CodeStatementCollection collection = new CodeStatementCollection();
' Creates an empty CodeStatementCollection.
Dim collection As New CodeStatementCollection
適用於
CodeStatementCollection(CodeStatement[])
初始化包含指定物件陣列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 用來初始化集合的物件陣列。
例外狀況
value 是 null。
適用於
CodeStatementCollection(CodeStatementCollection)
初始化包含指定原始集合元素的類別新實例 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 用來初始化集合的物件。
例外狀況
value 是 null。