Share via


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

See Also

Reference

ParserContext Class

OnError Overload

System.Web.Razor.Parser Namespace