Share via


CallbackVisitor Class

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Represents a visitor that executes a callback upon the completion of a visit.

Inheritance Hierarchy

System.Object
  System.Web.Razor.Parser.ParserVisitor
    System.Web.Razor.Parser.CallbackVisitor

Namespace:  System.Web.Razor.Parser
Assembly:  System.Web.Razor (in System.Web.Razor.dll)

Syntax

'Declaration
Public Class CallbackVisitor _
    Inherits ParserVisitor
'Usage
Dim instance As CallbackVisitor
public class CallbackVisitor : ParserVisitor
public ref class CallbackVisitor : public ParserVisitor
type CallbackVisitor =  
    class 
        inherit ParserVisitor 
    end
public class CallbackVisitor extends ParserVisitor

The CallbackVisitor type exposes the following members.

Constructors

  Name Description
Public method CallbackVisitor(Action<Span>) 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.
Public method CallbackVisitor(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.
Public method CallbackVisitor(Action<Span>, Action<RazorError>, Action<BlockType>, Action<BlockType>) 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.
Public method CallbackVisitor(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.

Top

Properties

  Name Description
Public property CancelToken This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Gets or sets the cancellation token. (Inherited from ParserVisitor.)
Public property SynchronizationContext This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Gets or sets the synchronization context for this callback visitor.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method OnComplete This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. (Overrides ParserVisitor.OnComplete().)
Public method ThrowIfCanceled This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. (Inherited from ParserVisitor.)
Public method ToString (Inherited from Object.)
Public method VisitBlock This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.Visits the specified block. (Inherited from ParserVisitor.)
Public method VisitEndBlock This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Executes the visitor callback to visit the end block. (Overrides ParserVisitor.VisitEndBlock(Block).)
Public method VisitError This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Executes the visitor callback to visit the error. (Overrides ParserVisitor.VisitError(RazorError).)
Public method VisitSpan This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Executes the visitor callback to visit the span. (Overrides ParserVisitor.VisitSpan(Span).)
Public method VisitStartBlock This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code. Executes the visitor callback to visit the start block. (Overrides ParserVisitor.VisitStartBlock(Block).)

Top

Extension Methods

  Name Description
Public Extension Method Visit (Defined by ParserVisitorExtensions.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Razor.Parser Namespace