Redigera

Dela via


CodeStatementCollection Constructors

Definition

Initializes a new instance of the CodeStatementCollection class.

Overloads

CodeStatementCollection()

Initializes a new instance of the CodeStatementCollection class.

CodeStatementCollection(CodeStatement[])

Initializes a new instance of the CodeStatementCollection class that contains the specified array of CodeStatement objects.

CodeStatementCollection(CodeStatementCollection)

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

CodeStatementCollection()

Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs

Initializes a new instance of the CodeStatementCollection class.

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

Examples

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

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

Applies to

CodeStatementCollection(CodeStatement[])

Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs

Initializes a new instance of the CodeStatementCollection class that contains the specified array of CodeStatement objects.

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

Parameters

value
CodeStatement[]

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

Exceptions

value is null.

Applies to

CodeStatementCollection(CodeStatementCollection)

Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs
Source:
CodeStatementCollection.cs

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

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)

Parameters

value
CodeStatementCollection

A CodeStatementCollection object with which to initialize the collection.

Exceptions

value is null.

Applies to