ParserContext.OnError Method (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.
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, _
ParamArray args As Object() _
)
'Usage
Dim instance As ParserContext
Dim location As SourceLocation
Dim message As String
Dim args As Object()
instance.OnError(location, message, args)
public void OnError(
SourceLocation location,
string message,
params Object[] args
)
public:
void OnError(
SourceLocation location,
String^ message,
... array<Object^>^ args
)
member OnError :
location:SourceLocation *
message:string *
args:Object[] -> unit
public function OnError(
location : SourceLocation,
message : String,
... args : Object[]
)
Parameters
- location
Type: System.Web.Razor.Text.SourceLocation
The source location.
- message
Type: System.String
The error message.
- args
Type: System.Object[]
The other information about the source location.