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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기