Bagikan melalui


CompilerError Kelas

Definisi

Perhatian

The recommended alternative is Microsoft.CSharp.CSharpCodeProvider and System.CodeDom.Compiler.ICodeCompiler. The CSharpCodeProvider and CodeDom ICodeCompiler provide a much richer set of functionality for specifying how to launch the compiler.

Mewakili kesalahan atau pesan diagnostik yang dilaporkan oleh pengkompilasi.

public ref class CompilerError
public class CompilerError
[System.Obsolete("The recommended alternative is Microsoft.CSharp.CSharpCodeProvider and System.CodeDom.Compiler.ICodeCompiler.  The CSharpCodeProvider and CodeDom ICodeCompiler provide a much richer set of functionality for specifying how to launch the compiler.")]
public class CompilerError
type CompilerError = class
[<System.Obsolete("The recommended alternative is Microsoft.CSharp.CSharpCodeProvider and System.CodeDom.Compiler.ICodeCompiler.  The CSharpCodeProvider and CodeDom ICodeCompiler provide a much richer set of functionality for specifying how to launch the compiler.")>]
type CompilerError = class
Public Class CompilerError
Warisan
CompilerError
Atribut

Konstruktor

CompilerError()
Kedaluwarsa.

Menginisialisasi instans baru kelas CompilerError.

Bidang

ErrorLevel
Kedaluwarsa.

Menentukan tingkat keparahan diagnostik ini.

ErrorMessage
Kedaluwarsa.

Menentukan teks pesan diagnostik.

ErrorNumber
Kedaluwarsa.

Menentukan nomor diagnostik.

SourceColumn
Kedaluwarsa.

Menentukan kolom teks sumber yang menyebabkan diagnostik (berbasis 1), atau 0 jika tidak ada informasi kolom.

SourceFile
Kedaluwarsa.

Menentukan nama file teks sumber yang menyebabkan diagnostik, atau string kosong ("").

SourceLine
Kedaluwarsa.

Menentukan baris teks sumber yang menyebabkan diagnostik (berbasis 1), atau 0 jika tidak ada informasi baris.

Metode

Equals(Object)
Kedaluwarsa.

Menentukan apakah objek yang ditentukan sama dengan objek saat ini.

(Diperoleh dari Object)
GetHashCode()
Kedaluwarsa.

Berfungsi sebagai fungsi hash default.

(Diperoleh dari Object)
GetType()
Kedaluwarsa.

Mendapatkan dari instans Type saat ini.

(Diperoleh dari Object)
MemberwiseClone()
Kedaluwarsa.

Membuat salinan dangkal dari saat ini Object.

(Diperoleh dari Object)
ToString()
Kedaluwarsa.

Mengembalikan string yang mewakili saat ini CompilerError.

Berlaku untuk

Lihat juga