次の方法で共有


RazorTemplateEngine.ParseTemplate メソッド

定義

オーバーロード

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

TextBuffer で指定されたテンプレートを解析し、結果を返します

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

パラメーター

input
ITextBuffer

戻り値

適用対象

ParseTemplate(ITextBuffer, Nullable<CancellationToken>)

TextBuffer で指定されたテンプレートを解析し、結果を返します

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

パラメーター

input
ITextBuffer

解析する入力テキスト。

cancelToken
Nullable<CancellationToken>

解析の取り消しに使用するトークン。

戻り値

解析ツリー。

注釈

重要: これは GeneratedCode の前に呼び出す必要はありません。 GenerateCode は、最初にドキュメントを自動的に解析します。

指定されたキャンセル トークンを使用して、解析を取り消すことができます。 ただし、解析は呼び出し元スレッドで _synchronously_、 が発生します。 このパラメーターは、呼び出し元が CancellationToken を含むバックグラウンド スレッド内にある場合に、それをパーサーに渡すことができるように提供されます。

適用対象

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

パラメーター

input
TextReader

戻り値

適用対象

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

パラメーター

input
TextReader
sourceFileName
String

戻り値

適用対象