RazorTemplateEngine.ParseTemplate Metodo

Definizione

Overload

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

Analizza il modello specificato da TextBuffer e restituisce il risultato

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

Parametri

input
ITextBuffer

Restituisce

Si applica a

ParseTemplate(ITextBuffer, Nullable<CancellationToken>)

Analizza il modello specificato da TextBuffer e restituisce il risultato

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

Parametri

input
ITextBuffer

Testo di input da analizzare.

cancelToken
Nullable<CancellationToken>

Token utilizzato per annullare il parser.

Restituisce

Struttura ad albero di analisi risultante.

Commenti

IMPORTANTE: non è necessario chiamare prima di GeneratedCode! GenerateCode analizzerà automaticamente il documento per primo.

Il token di annullamento fornito può essere usato per annullare l'analisi. Si noti tuttavia che l'analisi si verifica _synchronously_, nel thread dei chiamanti. Questo parametro viene fornito in modo che, se il chiamante si trova in un thread in background con cancellationToken, può passarlo al parser.

Si applica 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

Parametri

input
TextReader

Restituisce

Si applica 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

Parametri

input
TextReader
sourceFileName
String

Restituisce

Si applica a