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
- 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
- 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
- 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
.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應