CodeStatementCollection Konstruktory

Definice

Inicializuje novou instanci CodeStatementCollection třídy.

Přetížení

CodeStatementCollection()

Inicializuje novou instanci CodeStatementCollection třídy.

CodeStatementCollection(CodeStatement[])

Inicializuje novou instanci CodeStatementCollection třídy, která obsahuje zadané pole CodeStatement objektů.

CodeStatementCollection(CodeStatementCollection)

Inicializuje novou instanci CodeStatementCollection třídy, která obsahuje prvky zadané zdrojové kolekce.

CodeStatementCollection()

Zdroj:
CodeStatementCollection.cs
Zdroj:
CodeStatementCollection.cs
Zdroj:
CodeStatementCollection.cs

Inicializuje novou instanci CodeStatementCollection třídy.

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

Příklady

Následující příklad ukazuje, jak vytvořit prázdnou CodeStatementCollection instanci třídy.

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

Platí pro

CodeStatementCollection(CodeStatement[])

Zdroj:
CodeStatementCollection.cs
Zdroj:
CodeStatementCollection.cs
Zdroj:
CodeStatementCollection.cs

Inicializuje novou instanci CodeStatementCollection třídy, která obsahuje zadané pole CodeStatement objektů.

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

Parametry

value
CodeStatement[]

Pole CodeStatement objektů, pomocí kterých chcete inicializovat kolekci.

Výjimky

value je null.

Platí pro

CodeStatementCollection(CodeStatementCollection)

Zdroj:
CodeStatementCollection.cs
Zdroj:
CodeStatementCollection.cs
Zdroj:
CodeStatementCollection.cs

Inicializuje novou instanci CodeStatementCollection třídy, která obsahuje prvky zadané zdrojové kolekce.

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)

Parametry

value
CodeStatementCollection

Objekt CodeStatementCollection , pomocí kterého chcete inicializovat kolekci.

Výjimky

value je null.

Platí pro