Bagikan melalui


CodeTypeDeclarationCollection Konstruktor

Definisi

Menginisialisasi instans baru kelas CodeTypeDeclarationCollection.

Overload

CodeTypeDeclarationCollection()

Menginisialisasi instans baru kelas CodeTypeDeclarationCollection.

CodeTypeDeclarationCollection(CodeTypeDeclaration[])

Menginisialisasi instans CodeTypeDeclarationCollection baru kelas yang berisi array CodeTypeDeclaration objek yang ditentukan.

CodeTypeDeclarationCollection(CodeTypeDeclarationCollection)

Menginisialisasi instans CodeTypeDeclarationCollection baru kelas yang berisi elemen koleksi sumber yang ditentukan.

CodeTypeDeclarationCollection()

Sumber:
CodeTypeDeclarationCollection.cs
Sumber:
CodeTypeDeclarationCollection.cs
Sumber:
CodeTypeDeclarationCollection.cs

Menginisialisasi instans baru kelas CodeTypeDeclarationCollection.

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

Contoh

Contoh berikut menunjukkan cara membuat instans CodeTypeDeclarationCollection kosong kelas.

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

Berlaku untuk

CodeTypeDeclarationCollection(CodeTypeDeclaration[])

Sumber:
CodeTypeDeclarationCollection.cs
Sumber:
CodeTypeDeclarationCollection.cs
Sumber:
CodeTypeDeclarationCollection.cs

Menginisialisasi instans CodeTypeDeclarationCollection baru kelas yang berisi array CodeTypeDeclaration objek yang ditentukan.

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

Parameter

value
CodeTypeDeclaration[]

Array CodeTypeDeclaration objek untuk menginisialisasi koleksi.

Berlaku untuk

CodeTypeDeclarationCollection(CodeTypeDeclarationCollection)

Sumber:
CodeTypeDeclarationCollection.cs
Sumber:
CodeTypeDeclarationCollection.cs
Sumber:
CodeTypeDeclarationCollection.cs

Menginisialisasi instans CodeTypeDeclarationCollection baru kelas yang berisi elemen koleksi sumber yang ditentukan.

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)

Parameter

value
CodeTypeDeclarationCollection

Objek CodeTypeDeclarationCollection untuk menginisialisasi koleksi.

Berlaku untuk