ParserContext.OnError 方法

定義

多載

OnError(SourceLocation, String)

這個類型/成員可以支援 .NET Framework 基礎結構,但不能直接使用於您的程式碼中。 當剖析發生錯誤時產生。

OnError(SourceLocation, String, Object[])

這個類型/成員可以支援 .NET Framework 基礎結構,但不能直接使用於您的程式碼中。 當剖析發生錯誤時產生。

OnError(SourceLocation, String)

這個類型/成員可以支援 .NET Framework 基礎結構,但不能直接使用於您的程式碼中。 當剖析發生錯誤時產生。

public void OnError (System.Web.Razor.Text.SourceLocation location, string message);
member this.OnError : System.Web.Razor.Text.SourceLocation * string -> unit
Public Sub OnError (location As SourceLocation, message As String)

參數

location
SourceLocation

來源位置。

message
String

錯誤訊息。

適用於

OnError(SourceLocation, String, Object[])

這個類型/成員可以支援 .NET Framework 基礎結構,但不能直接使用於您的程式碼中。 當剖析發生錯誤時產生。

public void OnError (System.Web.Razor.Text.SourceLocation location, string message, params object[] args);
member this.OnError : System.Web.Razor.Text.SourceLocation * string * obj[] -> unit
Public Sub OnError (location As SourceLocation, message As String, ParamArray args As Object())

參數

location
SourceLocation

來源位置。

message
String

錯誤訊息。

args
Object[]

關於來源位置的其他資訊。

適用於