CompilerError 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 CompilerError 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| CompilerError() |
初始化 CompilerError 類別的新執行個體。 |
| CompilerError(String, Int32, Int32, String, String) |
使用指定的檔案名稱、行、欄、錯誤編號及錯誤文字初始化類別的新實例 CompilerError 。 |
CompilerError()
CompilerError(String, Int32, Int32, String, String)
使用指定的檔案名稱、行、欄、錯誤編號及錯誤文字初始化類別的新實例 CompilerError 。
public:
CompilerError(System::String ^ fileName, int line, int column, System::String ^ errorNumber, System::String ^ errorText);
public CompilerError(string fileName, int line, int column, string errorNumber, string errorText);
new System.CodeDom.Compiler.CompilerError : string * int * int * string * string -> System.CodeDom.Compiler.CompilerError
Public Sub New (fileName As String, line As Integer, column As Integer, errorNumber As String, errorText As String)
參數
- fileName
- String
編譯器在遇到錯誤時正在編譯的檔案名稱。
- line
- Int32
錯誤來源的線。
- column
- Int32
錯誤來源的欄位。
- errorNumber
- String
錯誤的錯誤編號。
- errorText
- String
錯誤訊息文字。