CompilerErrorCollection 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 CompilerErrorCollection class.
Overloads
CompilerErrorCollection() |
Initializes a new instance of the CompilerErrorCollection class. |
CompilerErrorCollection(CompilerError[]) |
Initializes a new instance of CompilerErrorCollection that contains the specified array of CompilerError objects. |
CompilerErrorCollection(CompilerErrorCollection) |
Initializes a new instance of the CompilerErrorCollection class that contains the contents of the specified CompilerErrorCollection. |
CompilerErrorCollection()
- Source:
- CompilerErrorCollection.cs
- Source:
- CompilerErrorCollection.cs
- Source:
- CompilerErrorCollection.cs
Initializes a new instance of the CompilerErrorCollection class.
public:
CompilerErrorCollection();
public CompilerErrorCollection ();
Public Sub New ()
Examples
The following example demonstrates how to create an empty instance of the CompilerErrorCollection class.
// Creates an empty CompilerErrorCollection.
CompilerErrorCollection^ collection = gcnew CompilerErrorCollection;
// Creates an empty CompilerErrorCollection.
CompilerErrorCollection collection = new CompilerErrorCollection();
' Creates an empty CompilerErrorCollection.
Dim collection As New CompilerErrorCollection()
Applies to
CompilerErrorCollection(CompilerError[])
- Source:
- CompilerErrorCollection.cs
- Source:
- CompilerErrorCollection.cs
- Source:
- CompilerErrorCollection.cs
Initializes a new instance of CompilerErrorCollection that contains the specified array of CompilerError objects.
public:
CompilerErrorCollection(cli::array <System::CodeDom::Compiler::CompilerError ^> ^ value);
public CompilerErrorCollection (System.CodeDom.Compiler.CompilerError[] value);
new System.CodeDom.Compiler.CompilerErrorCollection : System.CodeDom.Compiler.CompilerError[] -> System.CodeDom.Compiler.CompilerErrorCollection
Public Sub New (value As CompilerError())
Parameters
- value
- CompilerError[]
An array of CompilerError objects to initialize the collection with.
Exceptions
value
is null
.
Applies to
CompilerErrorCollection(CompilerErrorCollection)
- Source:
- CompilerErrorCollection.cs
- Source:
- CompilerErrorCollection.cs
- Source:
- CompilerErrorCollection.cs
Initializes a new instance of the CompilerErrorCollection class that contains the contents of the specified CompilerErrorCollection.
public:
CompilerErrorCollection(System::CodeDom::Compiler::CompilerErrorCollection ^ value);
public CompilerErrorCollection (System.CodeDom.Compiler.CompilerErrorCollection value);
new System.CodeDom.Compiler.CompilerErrorCollection : System.CodeDom.Compiler.CompilerErrorCollection -> System.CodeDom.Compiler.CompilerErrorCollection
Public Sub New (value As CompilerErrorCollection)
Parameters
- value
- CompilerErrorCollection
A CompilerErrorCollection object with which to initialize the collection.
Exceptions
value
is null
.