CallbackVisitor Constructor (Action<Span>, Action<RazorError>)
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Initializes a new instance of the CallbackVisitor class.
Namespace: System.Web.Razor.Parser
Assembly: System.Web.Razor (in System.Web.Razor.dll)
Syntax
'Declaration
Public Sub New ( _
spanCallback As Action(Of Span), _
errorCallback As Action(Of RazorError) _
)
'Usage
Dim spanCallback As Action(Of Span)
Dim errorCallback As Action(Of RazorError)
Dim instance As New CallbackVisitor(spanCallback, _
errorCallback)
public CallbackVisitor(
Action<Span> spanCallback,
Action<RazorError> errorCallback
)
public:
CallbackVisitor(
Action<Span^>^ spanCallback,
Action<RazorError^>^ errorCallback
)
new :
spanCallback:Action<Span> *
errorCallback:Action<RazorError> -> CallbackVisitor
public function CallbackVisitor(
spanCallback : Action<Span>,
errorCallback : Action<RazorError>
)
Parameters
- spanCallback
Type: System.Action<Span>
The delegate for the span visit.
- errorCallback
Type: System.Action<RazorError>
The delegate for the error visit.