ParserContext.OnError 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
OnError(RazorError) | |
OnError(SourceLocation, String, Int32) | |
OnError(SourceLocation, String, Int32, Object[]) |
OnError(RazorError)
public:
void OnError(Microsoft::AspNetCore::Razor::RazorError ^ error);
public void OnError (Microsoft.AspNetCore.Razor.RazorError error);
member this.OnError : Microsoft.AspNetCore.Razor.RazorError -> unit
Public Sub OnError (error As RazorError)
参数
- error
- RazorError
适用于
OnError(SourceLocation, String, Int32)
public:
void OnError(Microsoft::AspNetCore::Razor::SourceLocation location, System::String ^ message, int length);
public void OnError (Microsoft.AspNetCore.Razor.SourceLocation location, string message, int length);
member this.OnError : Microsoft.AspNetCore.Razor.SourceLocation * string * int -> unit
Public Sub OnError (location As SourceLocation, message As String, length As Integer)
参数
- location
- SourceLocation
- message
- String
- length
- Int32
适用于
OnError(SourceLocation, String, Int32, Object[])
public:
void OnError(Microsoft::AspNetCore::Razor::SourceLocation location, System::String ^ message, int length, ... cli::array <System::Object ^> ^ args);
public void OnError (Microsoft.AspNetCore.Razor.SourceLocation location, string message, int length, params object[] args);
member this.OnError : Microsoft.AspNetCore.Razor.SourceLocation * string * int * obj[] -> unit
Public Sub OnError (location As SourceLocation, message As String, length As Integer, ParamArray args As Object())
参数
- location
- SourceLocation
- message
- String
- length
- Int32
- args
- Object[]