แก้ไข

แชร์ผ่าน


CodeTypeDeclarationCollection Constructors

Definition

Initializes a new instance of the CodeTypeDeclarationCollection class.

Overloads

CodeTypeDeclarationCollection()

Initializes a new instance of the CodeTypeDeclarationCollection class.

CodeTypeDeclarationCollection(CodeTypeDeclaration[])

Initializes a new instance of the CodeTypeDeclarationCollection class that contains the specified array of CodeTypeDeclaration objects.

CodeTypeDeclarationCollection(CodeTypeDeclarationCollection)

Initializes a new instance of the CodeTypeDeclarationCollection class that contains the elements of the specified source collection.

CodeTypeDeclarationCollection()

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

Initializes a new instance of the CodeTypeDeclarationCollection class.

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

Examples

The following example shows how to create an empty instance of the CodeTypeDeclarationCollection class.

// 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()

Applies to

CodeTypeDeclarationCollection(CodeTypeDeclaration[])

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

Initializes a new instance of the CodeTypeDeclarationCollection class that contains the specified array of CodeTypeDeclaration objects.

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())

Parameters

value
CodeTypeDeclaration[]

An array of CodeTypeDeclaration objects with which to initialize the collection.

Applies to

CodeTypeDeclarationCollection(CodeTypeDeclarationCollection)

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

Initializes a new instance of the CodeTypeDeclarationCollection class that contains the elements of the specified source collection.

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)

Parameters

value
CodeTypeDeclarationCollection

A CodeTypeDeclarationCollection object with which to initialize the collection.

Applies to