CallbackVisitor Constructor (Action<Span>, Action<RazorError>, Action<BlockType>, Action<BlockType>, Action)
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), _
startBlockCallback As Action(Of BlockType), _
endBlockCallback As Action(Of BlockType), _
completeCallback As Action _
)
'Usage
Dim spanCallback As Action(Of Span)
Dim errorCallback As Action(Of RazorError)
Dim startBlockCallback As Action(Of BlockType)
Dim endBlockCallback As Action(Of BlockType)
Dim completeCallback As Action
Dim instance As New CallbackVisitor(spanCallback, _
errorCallback, startBlockCallback, _
endBlockCallback, completeCallback)
public CallbackVisitor(
Action<Span> spanCallback,
Action<RazorError> errorCallback,
Action<BlockType> startBlockCallback,
Action<BlockType> endBlockCallback,
Action completeCallback
)
public:
CallbackVisitor(
Action<Span^>^ spanCallback,
Action<RazorError^>^ errorCallback,
Action<BlockType>^ startBlockCallback,
Action<BlockType>^ endBlockCallback,
Action^ completeCallback
)
new :
spanCallback:Action<Span> *
errorCallback:Action<RazorError> *
startBlockCallback:Action<BlockType> *
endBlockCallback:Action<BlockType> *
completeCallback:Action -> CallbackVisitor
public function CallbackVisitor(
spanCallback : Action<Span>,
errorCallback : Action<RazorError>,
startBlockCallback : Action<BlockType>,
endBlockCallback : Action<BlockType>,
completeCallback : Action
)
Parameters
- spanCallback
Type: System.Action<Span>
The delegate for the span visit.
- errorCallback
Type: System.Action<RazorError>
The delegate for the error visit.
- startBlockCallback
Type: System.Action<BlockType>
The delegate for the start block visit.
- endBlockCallback
Type: System.Action<BlockType>
The delegate for the end block visit.
- completeCallback
Type: System.Action
The delegate to execute for the complete event.