CompilerErrorCollection Konstruktorer

Definition

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

Källa:
CompilerErrorCollection.cs
Källa:
CompilerErrorCollection.cs
Källa:
CompilerErrorCollection.cs
Källa:
CompilerErrorCollection.cs
Källa:
CompilerErrorCollection.cs
Källa:
CompilerErrorCollection.cs
Källa:
CompilerErrorCollection.cs

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[])

Källa:
CompilerErrorCollection.cs
Källa:
CompilerErrorCollection.cs
Källa:
CompilerErrorCollection.cs
Källa:
CompilerErrorCollection.cs
Källa:
CompilerErrorCollection.cs
Källa:
CompilerErrorCollection.cs
Källa:
CompilerErrorCollection.cs

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)

Källa:
CompilerErrorCollection.cs
Källa:
CompilerErrorCollection.cs
Källa:
CompilerErrorCollection.cs
Källa:
CompilerErrorCollection.cs
Källa:
CompilerErrorCollection.cs
Källa:
CompilerErrorCollection.cs
Källa:
CompilerErrorCollection.cs

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.

Gäller för