Share via


ParserContext.OnError Method

Definition

Overloads

OnError(SourceLocation, String)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Occurs when parse encountered error.

OnError(SourceLocation, String, Object[])

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Occurs when parse encountered an error.

OnError(SourceLocation, String)

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Occurs when parse encountered error.

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)

Parameters

location
SourceLocation

The source location.

message
String

The error message.

Applies to

OnError(SourceLocation, String, Object[])

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Occurs when parse encountered an error.

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())

Parameters

location
SourceLocation

The source location.

message
String

The error message.

args
Object[]

The other information about the source location.

Applies to