CodeStatementCollection Konstruktorer

Definition

Initierar en ny instans av CodeStatementCollection klassen.

Överlagringar

Name Description
CodeStatementCollection()

Initierar en ny instans av CodeStatementCollection klassen.

CodeStatementCollection(CodeStatement[])

Initierar en ny instans av CodeStatementCollection klassen som innehåller den angivna matrisen med CodeStatement objekt.

CodeStatementCollection(CodeStatementCollection)

Initierar en ny instans av CodeStatementCollection klassen som innehåller elementen i den angivna källsamlingen.

CodeStatementCollection()

Källa:
CodeStatementCollection.cs
Källa:
CodeStatementCollection.cs
Källa:
CodeStatementCollection.cs
Källa:
CodeStatementCollection.cs
Källa:
CodeStatementCollection.cs
Källa:
CodeStatementCollection.cs
Källa:
CodeStatementCollection.cs

Initierar en ny instans av CodeStatementCollection klassen.

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

Exempel

I följande exempel visas hur du skapar en tom instans av CodeStatementCollection klassen.

// Creates an empty CodeStatementCollection.
CodeStatementCollection collection = new CodeStatementCollection();
' Creates an empty CodeStatementCollection.
Dim collection As New CodeStatementCollection

Gäller för

CodeStatementCollection(CodeStatement[])

Källa:
CodeStatementCollection.cs
Källa:
CodeStatementCollection.cs
Källa:
CodeStatementCollection.cs
Källa:
CodeStatementCollection.cs
Källa:
CodeStatementCollection.cs
Källa:
CodeStatementCollection.cs
Källa:
CodeStatementCollection.cs

Initierar en ny instans av CodeStatementCollection klassen som innehåller den angivna matrisen med 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())

Parametrar

value
CodeStatement[]

En matris CodeStatement med objekt som samlingen ska initieras med.

Undantag

value är null.

Gäller för

CodeStatementCollection(CodeStatementCollection)

Källa:
CodeStatementCollection.cs
Källa:
CodeStatementCollection.cs
Källa:
CodeStatementCollection.cs
Källa:
CodeStatementCollection.cs
Källa:
CodeStatementCollection.cs
Källa:
CodeStatementCollection.cs
Källa:
CodeStatementCollection.cs

Initierar en ny instans av CodeStatementCollection klassen som innehåller elementen i den angivna källsamlingen.

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)

Parametrar

value
CodeStatementCollection

Ett CodeStatementCollection objekt som samlingen ska initieras med.

Undantag

value är null.

Gäller för