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.