CodeStatementCollection Konstruktor
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Menginisialisasi instans baru kelas CodeStatementCollection.
Overload
CodeStatementCollection() |
Menginisialisasi instans baru kelas CodeStatementCollection. |
CodeStatementCollection(CodeStatement[]) |
Menginisialisasi instans CodeStatementCollection baru kelas yang berisi array CodeStatement objek yang ditentukan. |
CodeStatementCollection(CodeStatementCollection) |
Menginisialisasi instans CodeStatementCollection baru kelas yang berisi elemen koleksi sumber yang ditentukan. |
CodeStatementCollection()
- Sumber:
- CodeStatementCollection.cs
- Sumber:
- CodeStatementCollection.cs
- Sumber:
- CodeStatementCollection.cs
Menginisialisasi instans baru kelas CodeStatementCollection.
public:
CodeStatementCollection();
public CodeStatementCollection ();
Public Sub New ()
Contoh
Contoh berikut menunjukkan cara membuat instans CodeStatementCollection kosong kelas.
// Creates an empty CodeStatementCollection.
CodeStatementCollection^ collection = gcnew CodeStatementCollection;
// Creates an empty CodeStatementCollection.
CodeStatementCollection collection = new CodeStatementCollection();
' Creates an empty CodeStatementCollection.
Dim collection As New CodeStatementCollection
Berlaku untuk
CodeStatementCollection(CodeStatement[])
- Sumber:
- CodeStatementCollection.cs
- Sumber:
- CodeStatementCollection.cs
- Sumber:
- CodeStatementCollection.cs
Menginisialisasi instans CodeStatementCollection baru kelas yang berisi array CodeStatement objek yang ditentukan.
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())
Parameter
- value
- CodeStatement[]
Array CodeStatement objek untuk menginisialisasi koleksi.
Pengecualian
value
adalah null
.
Berlaku untuk
CodeStatementCollection(CodeStatementCollection)
- Sumber:
- CodeStatementCollection.cs
- Sumber:
- CodeStatementCollection.cs
- Sumber:
- CodeStatementCollection.cs
Menginisialisasi instans CodeStatementCollection baru kelas yang berisi elemen koleksi sumber yang ditentukan.
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)
Parameter
- value
- CodeStatementCollection
Objek CodeStatementCollection untuk menginisialisasi koleksi.
Pengecualian
value
adalah null
.