語言

ParserResults 建構函式

定義

多載

ParserResults(Block, IEnumerable<TagHelperDescriptor>, ErrorSink)

具現化新的 ParserResults 實例。

public:
 ParserResults(Microsoft::AspNetCore::Razor::Parser::SyntaxTree::Block ^ document, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Razor::Compilation::TagHelpers::TagHelperDescriptor ^> ^ tagHelperDescriptors, Microsoft::AspNetCore::Razor::ErrorSink ^ errorSink);
public ParserResults(Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Block document, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor> tagHelperDescriptors, Microsoft.AspNetCore.Razor.ErrorSink errorSink);
new Microsoft.AspNetCore.Razor.ParserResults : Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Block * seq<Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor> * Microsoft.AspNetCore.Razor.ErrorSink -> Microsoft.AspNetCore.Razor.ParserResults
Public Sub New (document As Block, tagHelperDescriptors As IEnumerable(Of TagHelperDescriptor), errorSink As ErrorSink)

參數

document
Block

Block語法樹狀結構的 。

tagHelperDescriptors
IEnumerable<TagHelperDescriptor>

套 TagHelperDescriptor 用至目前 Razor 檔的 。

errorSink
ErrorSink

剖 ErrorSink 析目前 Razor 檔時,用來收集 RazorError 的 。

適用於

ParserResults(Boolean, Block, IEnumerable<TagHelperDescriptor>, ErrorSink)

具現化新的 ParserResults 實例。

protected:
 ParserResults(bool success, Microsoft::AspNetCore::Razor::Parser::SyntaxTree::Block ^ document, System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Razor::Compilation::TagHelpers::TagHelperDescriptor ^> ^ tagHelperDescriptors, Microsoft::AspNetCore::Razor::ErrorSink ^ errorSink);
protected ParserResults(bool success, Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Block document, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor> tagHelperDescriptors, Microsoft.AspNetCore.Razor.ErrorSink errorSink);
new Microsoft.AspNetCore.Razor.ParserResults : bool * Microsoft.AspNetCore.Razor.Parser.SyntaxTree.Block * seq<Microsoft.AspNetCore.Razor.Compilation.TagHelpers.TagHelperDescriptor> * Microsoft.AspNetCore.Razor.ErrorSink -> Microsoft.AspNetCore.Razor.ParserResults
Protected Sub New (success As Boolean, document As Block, tagHelperDescriptors As IEnumerable(Of TagHelperDescriptor), errorSink As ErrorSink)

參數

success
Boolean

true 如果剖析成功,則為 , false 否則為 。

document
Block

Block語法樹狀結構的 。

tagHelperDescriptors
IEnumerable<TagHelperDescriptor>

套 TagHelperDescriptor 用至目前 Razor 檔的 。

errorSink
ErrorSink

剖 ErrorSink 析目前 Razor 檔時,用來收集 RazorError 的 。

適用於