RazorTemplateEngine.ParseTemplate Method (TextReader, Nullable<CancellationToken>)
This type/member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Parses the template specified by the TextBuffer and returns its result.
Namespace: System.Web.Razor
Assembly: System.Web.Razor (in System.Web.Razor.dll)
Syntax
'Declaration
Public Function ParseTemplate ( _
input As TextReader, _
cancelToken As Nullable(Of CancellationToken) _
) As ParserResults
'Usage
Dim instance As RazorTemplateEngine
Dim input As TextReader
Dim cancelToken As Nullable(Of CancellationToken)
Dim returnValue As ParserResults
returnValue = instance.ParseTemplate(input, _
cancelToken)
public ParserResults ParseTemplate(
TextReader input,
Nullable<CancellationToken> cancelToken
)
public:
ParserResults^ ParseTemplate(
TextReader^ input,
Nullable<CancellationToken> cancelToken
)
member ParseTemplate :
input:TextReader *
cancelToken:Nullable<CancellationToken> -> ParserResults
public function ParseTemplate(
input : TextReader,
cancelToken : Nullable<CancellationToken>
) : ParserResults
Parameters
- input
Type: System.IO.TextReader
The input text to parse.
- cancelToken
Type: System.Nullable<CancellationToken>
A token used to cancel the parser.
Return Value
Type: System.Web.Razor.ParserResults
The resulting parse tree.