CodeTypeDeclarationCollection 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 CodeTypeDeclarationCollection class.
Overloads
CodeTypeDeclarationCollection() |
Initializes a new instance of the CodeTypeDeclarationCollection class. |
CodeTypeDeclarationCollection(CodeTypeDeclaration[]) |
Initializes a new instance of the CodeTypeDeclarationCollection class that contains the specified array of CodeTypeDeclaration objects. |
CodeTypeDeclarationCollection(CodeTypeDeclarationCollection) |
Initializes a new instance of the CodeTypeDeclarationCollection class that contains the elements of the specified source collection. |
CodeTypeDeclarationCollection()
Initializes a new instance of the CodeTypeDeclarationCollection class.
public:
CodeTypeDeclarationCollection();
public CodeTypeDeclarationCollection ();
Public Sub New ()
Examples
The following example shows how to create an empty instance of the CodeTypeDeclarationCollection class.
// Creates an empty CodeTypeDeclarationCollection.
CodeTypeDeclarationCollection^ collection = gcnew CodeTypeDeclarationCollection;
// Creates an empty CodeTypeDeclarationCollection.
CodeTypeDeclarationCollection collection = new CodeTypeDeclarationCollection();
' Creates an empty CodeTypeDeclarationCollection.
Dim collection As New CodeTypeDeclarationCollection()
Applies to
CodeTypeDeclarationCollection(CodeTypeDeclaration[])
Initializes a new instance of the CodeTypeDeclarationCollection class that contains the specified array of CodeTypeDeclaration objects.
public:
CodeTypeDeclarationCollection(cli::array <System::CodeDom::CodeTypeDeclaration ^> ^ value);
public CodeTypeDeclarationCollection (System.CodeDom.CodeTypeDeclaration[] value);
new System.CodeDom.CodeTypeDeclarationCollection : System.CodeDom.CodeTypeDeclaration[] -> System.CodeDom.CodeTypeDeclarationCollection
Public Sub New (value As CodeTypeDeclaration())
Parameters
- value
- CodeTypeDeclaration[]
An array of CodeTypeDeclaration objects with which to initialize the collection.
Applies to
CodeTypeDeclarationCollection(CodeTypeDeclarationCollection)
Initializes a new instance of the CodeTypeDeclarationCollection class that contains the elements of the specified source collection.
public:
CodeTypeDeclarationCollection(System::CodeDom::CodeTypeDeclarationCollection ^ value);
public CodeTypeDeclarationCollection (System.CodeDom.CodeTypeDeclarationCollection value);
new System.CodeDom.CodeTypeDeclarationCollection : System.CodeDom.CodeTypeDeclarationCollection -> System.CodeDom.CodeTypeDeclarationCollection
Public Sub New (value As CodeTypeDeclarationCollection)
Parameters
A CodeTypeDeclarationCollection object with which to initialize the collection.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應