MvcCSharpRazorCodeGenerator.TryVisitSpecialSpan Method
Returns a value that indicates whether the specified model span is an instance of ModelSpan.
Namespace: System.Web.Mvc.Razor
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Protected Overrides Function TryVisitSpecialSpan ( _
span As Span _
) As Boolean
'Usage
Dim span As Span
Dim returnValue As Boolean
returnValue = Me.TryVisitSpecialSpan(span)
protected override bool TryVisitSpecialSpan(
Span span
)
protected:
virtual bool TryVisitSpecialSpan(
Span^ span
) override
protected override function TryVisitSpecialSpan(
span : Span
) : boolean
Parameters
- span
Type: System.Web.Razor.Parser.SyntaxTree.Span
The model span.
Return Value
Type: System.Boolean
true if the value of the span parameter is an instance of ModelSpan; otherwise, false.
Remarks
This method processes an instance of ModelSpan by changing the base type of the generated class to the type represented by the ModelTypeName property value. A span is a node in the ASP.NET Razor syntax tree. It identifies a section of the text and whether it is markup, code, or transition or metacode. For example, the @ Razor control character is a metacode character.