ParserContext.OnError 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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[]
有关源位置的其他信息。