RazorTemplateEngine.ParseTemplate Método

Definição

Sobrecargas

ParseTemplate(ITextBuffer)
ParseTemplate(ITextBuffer, Nullable<CancellationToken>)

Analisa o modelo especificado pelo TextBuffer e retorna o resultado

ParseTemplate(TextReader, Nullable<CancellationToken>)
ParseTemplate(TextReader, String)

ParseTemplate(ITextBuffer)

public:
 Microsoft::AspNetCore::Razor::ParserResults ^ ParseTemplate(Microsoft::AspNetCore::Razor::Text::ITextBuffer ^ input);
public Microsoft.AspNetCore.Razor.ParserResults ParseTemplate (Microsoft.AspNetCore.Razor.Text.ITextBuffer input);
member this.ParseTemplate : Microsoft.AspNetCore.Razor.Text.ITextBuffer -> Microsoft.AspNetCore.Razor.ParserResults
Public Function ParseTemplate (input As ITextBuffer) As ParserResults

Parâmetros

input
ITextBuffer

Retornos

Aplica-se a

ParseTemplate(ITextBuffer, Nullable<CancellationToken>)

Analisa o modelo especificado pelo TextBuffer e retorna o resultado

public:
 Microsoft::AspNetCore::Razor::ParserResults ^ ParseTemplate(Microsoft::AspNetCore::Razor::Text::ITextBuffer ^ input, Nullable<System::Threading::CancellationToken> cancelToken);
public Microsoft.AspNetCore.Razor.ParserResults ParseTemplate (Microsoft.AspNetCore.Razor.Text.ITextBuffer input, System.Threading.CancellationToken? cancelToken);
member this.ParseTemplate : Microsoft.AspNetCore.Razor.Text.ITextBuffer * Nullable<System.Threading.CancellationToken> -> Microsoft.AspNetCore.Razor.ParserResults
Public Function ParseTemplate (input As ITextBuffer, cancelToken As Nullable(Of CancellationToken)) As ParserResults

Parâmetros

input
ITextBuffer

O texto de entrada a analisar.

cancelToken
Nullable<CancellationToken>

Um token usado para cancelar o analisador.

Retornos

A árvore de análise resultante.

Comentários

IMPORTANTE: isso NÃO precisa ser chamado antes de GeneratedCode! GenerateCode analisará automaticamente o documento primeiro.

O token de cancelamento fornecido pode ser usado para cancelar a análise. No entanto, observe que a análise ocorre _synchronously_, no thread de chamadores. Esse parâmetro é fornecido para que, se o chamador estiver em um thread em segundo plano com um CancellationToken, ele poderá passá-lo para o analisador.

Aplica-se a

ParseTemplate(TextReader, Nullable<CancellationToken>)

public:
 Microsoft::AspNetCore::Razor::ParserResults ^ ParseTemplate(System::IO::TextReader ^ input, Nullable<System::Threading::CancellationToken> cancelToken);
public Microsoft.AspNetCore.Razor.ParserResults ParseTemplate (System.IO.TextReader input, System.Threading.CancellationToken? cancelToken);
member this.ParseTemplate : System.IO.TextReader * Nullable<System.Threading.CancellationToken> -> Microsoft.AspNetCore.Razor.ParserResults
Public Function ParseTemplate (input As TextReader, cancelToken As Nullable(Of CancellationToken)) As ParserResults

Parâmetros

input
TextReader

Retornos

Aplica-se a

ParseTemplate(TextReader, String)

public:
 Microsoft::AspNetCore::Razor::ParserResults ^ ParseTemplate(System::IO::TextReader ^ input, System::String ^ sourceFileName);
public Microsoft.AspNetCore.Razor.ParserResults ParseTemplate (System.IO.TextReader input, string sourceFileName);
member this.ParseTemplate : System.IO.TextReader * string -> Microsoft.AspNetCore.Razor.ParserResults
Public Function ParseTemplate (input As TextReader, sourceFileName As String) As ParserResults

Parâmetros

input
TextReader
sourceFileName
String

Retornos

Aplica-se a