Share via


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

Return Value

Type: System.Web.Razor.ParserResults
The resulting parse tree.

See Also

Reference

RazorTemplateEngine Class

ParseTemplate Overload

System.Web.Razor Namespace