CompilerError 類別

定義

警告

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 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
繼承
CompilerError
屬性

建構函式

CompilerError()
已淘汰.

初始化 CompilerError 類別的新執行個體。

欄位

ErrorLevel
已淘汰.

指定此診斷的嚴重性。

ErrorMessage
已淘汰.

指定診斷訊息文字。

ErrorNumber
已淘汰.

指定診斷數字。

SourceColumn
已淘汰.

指定造成診斷 (以 1 為基礎) 的來源文字欄;若沒有欄資訊,則為 0。

SourceFile
已淘汰.

指定造成診斷的來源文字檔案名稱,或空字串 ("")。

SourceLine
已淘汰.

指定造成診斷 (以 1 為基礎) 的來源文字行;若沒有行資訊,則為 0。

方法

Equals(Object)
已淘汰.

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()
已淘汰.

做為預設雜湊函式。

(繼承來源 Object)
GetType()
已淘汰.

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()
已淘汰.

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()
已淘汰.

傳回表示目前 CompilerError 的字串。

適用於

另請參閱