RazorTemplateEngine.ParseTemplate Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ParseTemplate(ITextBuffer, 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. |
ParseTemplate(TextReader) |
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. |
ParseTemplate(ITextBuffer) |
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. |
ParseTemplate(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. |
ParseTemplate(ITextBuffer, 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.
public System.Web.Razor.ParserResults ParseTemplate(System.Web.Razor.Text.ITextBuffer input, System.Threading.CancellationToken? cancelToken);
member this.ParseTemplate : System.Web.Razor.Text.ITextBuffer * Nullable<System.Threading.CancellationToken> -> System.Web.Razor.ParserResults
Public Function ParseTemplate (input As ITextBuffer, cancelToken As Nullable(Of CancellationToken)) As ParserResults
Parameters
- input
- ITextBuffer
The input text to parse.
- cancelToken
- Nullable<CancellationToken>
A token used to cancel the parser.
Returns
The resulting parse tree.
Applies to
ParseTemplate(TextReader)
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.
public System.Web.Razor.ParserResults ParseTemplate(System.IO.TextReader input);
member this.ParseTemplate : System.IO.TextReader -> System.Web.Razor.ParserResults
Public Function ParseTemplate (input As TextReader) As ParserResults
Parameters
- input
- TextReader
The input text to parse.
Returns
The resulting parse tree.
Applies to
ParseTemplate(ITextBuffer)
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.
public System.Web.Razor.ParserResults ParseTemplate(System.Web.Razor.Text.ITextBuffer input);
member this.ParseTemplate : System.Web.Razor.Text.ITextBuffer -> System.Web.Razor.ParserResults
Public Function ParseTemplate (input As ITextBuffer) As ParserResults
Parameters
- input
- ITextBuffer
The input text to parse.
Returns
The resulting parse tree.
Applies to
ParseTemplate(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.
public System.Web.Razor.ParserResults ParseTemplate(System.IO.TextReader input, System.Threading.CancellationToken? cancelToken);
member this.ParseTemplate : System.IO.TextReader * Nullable<System.Threading.CancellationToken> -> System.Web.Razor.ParserResults
Public Function ParseTemplate (input As TextReader, cancelToken As Nullable(Of CancellationToken)) As ParserResults
Parameters
- input
- TextReader
The input text to parse.
- cancelToken
- Nullable<CancellationToken>
A token used to cancel the parser.
Returns
The resulting parse tree.