ParserContext.OnError Method (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.
Namespace: System.Web.Razor.Parser
Assembly: System.Web.Razor (in System.Web.Razor.dll)
Syntax
'Declaration
Public Sub OnError ( _
location As SourceLocation, _
message As String _
)
'Usage
Dim instance As ParserContext
Dim location As SourceLocation
Dim message As String
instance.OnError(location, message)
public void OnError(
SourceLocation location,
string message
)
public:
void OnError(
SourceLocation location,
String^ message
)
member OnError :
location:SourceLocation *
message:string -> unit
public function OnError(
location : SourceLocation,
message : String
)
Parameters
- location
Type: System.Web.Razor.Text.SourceLocation
The source location.
- message
Type: System.String
The error message.