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