CodeStatementCollection 构造函数

定义

初始化 CodeStatementCollection 类的新实例。

重载

名称 说明
CodeStatementCollection()

初始化 CodeStatementCollection 类的新实例。

CodeStatementCollection(CodeStatement[])

初始化包含指定对象数组的CodeStatementCollection类的新实例CodeStatement

CodeStatementCollection(CodeStatementCollection)

初始化包含指定源集合元素的类的新实例 CodeStatementCollection

CodeStatementCollection()

Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs

初始化 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[])

Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs
Source:
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)

Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs
Source:
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

适用于