Share via


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

  • completeCallback
    Type: System.Action
    The delegate to execute for the complete event.

See Also

Reference

CallbackVisitor Class

CallbackVisitor Overload

System.Web.Razor.Parser Namespace