CodeStatementCollection Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應