RazorError 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
RazorError(String, SourceLocation) |
這個類型/成員可以支援 .NET Framework 基礎結構,但不能直接使用於您的程式碼中。 初始化 RazorError 類別的新執行個體。 |
RazorError(String, SourceLocation, Int32) |
這個類型/成員可以支援 .NET Framework 基礎結構,但不能直接使用於您的程式碼中。 初始化 RazorError 類別的新執行個體。 |
RazorError(String, Int32, Int32, Int32) |
這個類型/成員可以支援 .NET Framework 基礎結構,但不能直接使用於您的程式碼中。 初始化 RazorError 類別的新執行個體。 |
RazorError(String, Int32, Int32, Int32, Int32) |
這個類型/成員可以支援 .NET Framework 基礎結構,但不能直接使用於您的程式碼中。 初始化 RazorError 類別的新執行個體。 |
RazorError(String, SourceLocation)
這個類型/成員可以支援 .NET Framework 基礎結構,但不能直接使用於您的程式碼中。 初始化 RazorError 類別的新執行個體。
public RazorError (string message, System.Web.Razor.Text.SourceLocation location);
new System.Web.Razor.Parser.SyntaxTree.RazorError : string * System.Web.Razor.Text.SourceLocation -> System.Web.Razor.Parser.SyntaxTree.RazorError
Public Sub New (message As String, location As SourceLocation)
參數
- message
- String
錯誤訊息。
- location
- SourceLocation
錯誤的來源位置。
適用於
RazorError(String, SourceLocation, Int32)
這個類型/成員可以支援 .NET Framework 基礎結構,但不能直接使用於您的程式碼中。 初始化 RazorError 類別的新執行個體。
public RazorError (string message, System.Web.Razor.Text.SourceLocation location, int length);
new System.Web.Razor.Parser.SyntaxTree.RazorError : string * System.Web.Razor.Text.SourceLocation * int -> System.Web.Razor.Parser.SyntaxTree.RazorError
Public Sub New (message As String, location As SourceLocation, length As Integer)
參數
- message
- String
錯誤訊息。
- location
- SourceLocation
錯誤的來源位置。
- length
- Int32
錯誤的長度。
適用於
RazorError(String, Int32, Int32, Int32)
這個類型/成員可以支援 .NET Framework 基礎結構,但不能直接使用於您的程式碼中。 初始化 RazorError 類別的新執行個體。
public RazorError (string message, int absoluteIndex, int lineIndex, int columnIndex);
new System.Web.Razor.Parser.SyntaxTree.RazorError : string * int * int * int -> System.Web.Razor.Parser.SyntaxTree.RazorError
Public Sub New (message As String, absoluteIndex As Integer, lineIndex As Integer, columnIndex As Integer)
參數
- message
- String
錯誤訊息。
- absoluteIndex
- Int32
來源位置的絕對索引。
- lineIndex
- Int32
來源位置的行索引。
- columnIndex
- Int32
來源位置的欄位索引。
適用於
RazorError(String, Int32, Int32, Int32, Int32)
這個類型/成員可以支援 .NET Framework 基礎結構,但不能直接使用於您的程式碼中。 初始化 RazorError 類別的新執行個體。
public RazorError (string message, int absoluteIndex, int lineIndex, int columnIndex, int length);
new System.Web.Razor.Parser.SyntaxTree.RazorError : string * int * int * int * int -> System.Web.Razor.Parser.SyntaxTree.RazorError
Public Sub New (message As String, absoluteIndex As Integer, lineIndex As Integer, columnIndex As Integer, length As Integer)
參數
- message
- String
錯誤訊息。
- absoluteIndex
- Int32
來源位置的絕對索引。
- lineIndex
- Int32
來源位置的行索引。
- columnIndex
- Int32
來源位置的欄位索引。
- length
- Int32
錯誤的長度。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應