RazorCodeGenerator.TryVisit<T> Method

This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.

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

Syntax

'Declaration
Protected Friend Shared Function TryVisit(Of T As Span) ( _
    baseSpan As Span, _
    subclassVisitor As Action(Of T) _
) As Boolean
'Usage
Dim baseSpan As Span
Dim subclassVisitor As Action(Of T)
Dim returnValue As Boolean

returnValue = RazorCodeGenerator.TryVisit(baseSpan, _
    subclassVisitor)
protected internal static bool TryVisit<T>(
    Span baseSpan,
    Action<T> subclassVisitor
)
where T : Span
protected public:
generic<typename T>
where T : Span
static bool TryVisit(
    Span^ baseSpan, 
    Action<T>^ subclassVisitor
)
JScript does not support generic types or methods.

Type Parameters

  • T

Parameters

Return Value

Type: System.Boolean

Permissions

  • Medium trust for the immediate caller. This member can be used by partially trusted code.

See Also

Reference

RazorCodeGenerator Class

System.Web.Razor.Generator Namespace