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[]

有关源位置的其他信息。

适用于