CompilerErrorCollection Konstruktorer
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Initierar en ny instans av CompilerErrorCollection klassen.
Överlagringar
| Name | Description |
|---|---|
| CompilerErrorCollection() |
Initierar en ny instans av CompilerErrorCollection klassen. |
| CompilerErrorCollection(CompilerError[]) |
Initierar en ny instans av CompilerErrorCollection som innehåller den angivna matrisen med CompilerError objekt. |
| CompilerErrorCollection(CompilerErrorCollection) |
Initierar en ny instans av CompilerErrorCollection klassen som innehåller innehållet i den angivna CompilerErrorCollection. |
CompilerErrorCollection()
Initierar en ny instans av CompilerErrorCollection klassen.
public:
CompilerErrorCollection();
public CompilerErrorCollection();
Public Sub New ()
Exempel
I följande exempel visas hur du skapar en tom instans av CompilerErrorCollection klassen.
// Creates an empty CompilerErrorCollection.
CompilerErrorCollection collection = new CompilerErrorCollection();
' Creates an empty CompilerErrorCollection.
Dim collection As New CompilerErrorCollection()
Gäller för
CompilerErrorCollection(CompilerError[])
Initierar en ny instans av CompilerErrorCollection som innehåller den angivna matrisen med CompilerError objekt.
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())
Parametrar
- value
- CompilerError[]
En matris med CompilerError objekt som samlingen ska initieras med.
Undantag
value är null.
Gäller för
CompilerErrorCollection(CompilerErrorCollection)
Initierar en ny instans av CompilerErrorCollection klassen som innehåller innehållet i den angivna 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)
Parametrar
- value
- CompilerErrorCollection
Ett CompilerErrorCollection objekt som samlingen ska initieras med.
Undantag
value är null.