CodeTypeDeclarationCollection 构造函数

定义

初始化 CodeTypeDeclarationCollection 类的新实例。

重载

CodeTypeDeclarationCollection()

初始化 CodeTypeDeclarationCollection 类的新实例。

CodeTypeDeclarationCollection(CodeTypeDeclaration[])

初始化 CodeTypeDeclarationCollection 类的新实例,该实例包含 CodeTypeDeclaration 对象的指定数组。

CodeTypeDeclarationCollection(CodeTypeDeclarationCollection)

初始化 CodeTypeDeclarationCollection 类的新实例,该实例包含指定源集合的元素。

CodeTypeDeclarationCollection()

Source:
CodeTypeDeclarationCollection.cs
Source:
CodeTypeDeclarationCollection.cs
Source:
CodeTypeDeclarationCollection.cs

初始化 CodeTypeDeclarationCollection 类的新实例。

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

示例

以下示例演示如何创建 类的 CodeTypeDeclarationCollection 空实例。

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

适用于

CodeTypeDeclarationCollection(CodeTypeDeclaration[])

Source:
CodeTypeDeclarationCollection.cs
Source:
CodeTypeDeclarationCollection.cs
Source:
CodeTypeDeclarationCollection.cs

初始化 CodeTypeDeclarationCollection 类的新实例,该实例包含 CodeTypeDeclaration 对象的指定数组。

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

参数

value
CodeTypeDeclaration[]

用于初始化该集合的 CodeTypeDeclaration 对象数组。

适用于

CodeTypeDeclarationCollection(CodeTypeDeclarationCollection)

Source:
CodeTypeDeclarationCollection.cs
Source:
CodeTypeDeclarationCollection.cs
Source:
CodeTypeDeclarationCollection.cs

初始化 CodeTypeDeclarationCollection 类的新实例,该实例包含指定源集合的元素。

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

参数

value
CodeTypeDeclarationCollection

一个 CodeTypeDeclarationCollection 对象,用来初始化集合。

适用于