Share via


CompilerErrorCollection Konstruktoren

Definition

Initialisiert eine neue Instanz der CompilerErrorCollection-Klasse.

Überlädt

CompilerErrorCollection()

Initialisiert eine neue Instanz der CompilerErrorCollection-Klasse.

CompilerErrorCollection(CompilerError[])

Initialisiert eine neue Instanz der CompilerErrorCollection-Klasse, die das angegebene Array von CompilerError-Objekten enthält.

CompilerErrorCollection(CompilerErrorCollection)

Initialisiert eine neue Instanz der CompilerErrorCollection-Klasse, die den Inhalt der angegebenen CompilerErrorCollection enthält.

CompilerErrorCollection()

Quelle:
CompilerErrorCollection.cs
Quelle:
CompilerErrorCollection.cs
Quelle:
CompilerErrorCollection.cs

Initialisiert eine neue Instanz der CompilerErrorCollection-Klasse.

public:
 CompilerErrorCollection();
public CompilerErrorCollection ();
Public Sub New ()

Beispiele

Im folgenden Beispiel wird veranschaulicht, wie eine leere instance der CompilerErrorCollection -Klasse erstellt wird.

// 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()

Gilt für:

CompilerErrorCollection(CompilerError[])

Quelle:
CompilerErrorCollection.cs
Quelle:
CompilerErrorCollection.cs
Quelle:
CompilerErrorCollection.cs

Initialisiert eine neue Instanz der CompilerErrorCollection-Klasse, die das angegebene Array von CompilerError-Objekten enthält.

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())

Parameter

value
CompilerError[]

Ein Array von CompilerError-Objekten, mit denen die Auflistung initialisiert werden soll.

Ausnahmen

value ist null.

Gilt für:

CompilerErrorCollection(CompilerErrorCollection)

Quelle:
CompilerErrorCollection.cs
Quelle:
CompilerErrorCollection.cs
Quelle:
CompilerErrorCollection.cs

Initialisiert eine neue Instanz der CompilerErrorCollection-Klasse, die den Inhalt der angegebenen CompilerErrorCollection enthält.

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)

Parameter

value
CompilerErrorCollection

Ein CompilerErrorCollection-Objekt, mit dem die Auflistung initialisiert werden soll.

Ausnahmen

value ist null.

Gilt für: