Share via


RazorParser 类

定义

public ref class RazorParser
public class RazorParser
type RazorParser = class
Public Class RazorParser
继承
RazorParser
派生

构造函数

RazorParser(ParserBase, ParserBase, ITagHelperDescriptorResolver)

初始化 RazorParser 的新实例。

RazorParser(RazorParser)

从指定 RazorParser 初始化 parser 的新实例。

属性

DesignTimeMode
TagHelperDescriptorResolver

ITagHelperDescriptorResolver获取用于解析 TagHelperDescriptor的 。

方法

CreateParseTask(TextReader, Action<Span>, Action<RazorError>)
CreateParseTask(TextReader, Action<Span>, Action<RazorError>, CancellationToken)
CreateParseTask(TextReader, Action<Span>, Action<RazorError>, SynchronizationContext)
CreateParseTask(TextReader, Action<Span>, Action<RazorError>, SynchronizationContext, CancellationToken)
CreateParseTask(TextReader, ParserVisitor)
GetTagHelperDescriptors(Block, ErrorSink)

为在指定的 documentRoot中注册的TagHelperDescriptor标记帮助程序返回 的 序列。

Parse(ITextDocument)
Parse(LookaheadTextReader)
Parse(LookaheadTextReader, ParserVisitor)
Parse(TextReader)
Parse(TextReader, ParserVisitor)

适用于