RazorParser.Parse 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Parse(ITextDocument) | |
Parse(LookaheadTextReader) |
已淘汰.
|
Parse(TextReader) | |
Parse(LookaheadTextReader, ParserVisitor) |
已淘汰.
|
Parse(TextReader, ParserVisitor) |
Parse(ITextDocument)
public:
virtual Microsoft::AspNetCore::Razor::ParserResults ^ Parse(Microsoft::AspNetCore::Razor::Text::ITextDocument ^ input);
public virtual Microsoft.AspNetCore.Razor.ParserResults Parse (Microsoft.AspNetCore.Razor.Text.ITextDocument input);
abstract member Parse : Microsoft.AspNetCore.Razor.Text.ITextDocument -> Microsoft.AspNetCore.Razor.ParserResults
override this.Parse : Microsoft.AspNetCore.Razor.Text.ITextDocument -> Microsoft.AspNetCore.Razor.ParserResults
Public Overridable Function Parse (input As ITextDocument) As ParserResults
參數
- input
- ITextDocument
傳回
適用於
Parse(LookaheadTextReader)
警告
Lookahead-based readers have been deprecated, use overrides which accept a TextReader or ITextDocument instead
public:
virtual Microsoft::AspNetCore::Razor::ParserResults ^ Parse(Microsoft::AspNetCore::Razor::Text::LookaheadTextReader ^ input);
[System.Obsolete("Lookahead-based readers have been deprecated, use overrides which accept a TextReader or ITextDocument instead")]
public virtual Microsoft.AspNetCore.Razor.ParserResults Parse (Microsoft.AspNetCore.Razor.Text.LookaheadTextReader input);
[<System.Obsolete("Lookahead-based readers have been deprecated, use overrides which accept a TextReader or ITextDocument instead")>]
abstract member Parse : Microsoft.AspNetCore.Razor.Text.LookaheadTextReader -> Microsoft.AspNetCore.Razor.ParserResults
override this.Parse : Microsoft.AspNetCore.Razor.Text.LookaheadTextReader -> Microsoft.AspNetCore.Razor.ParserResults
Public Overridable Function Parse (input As LookaheadTextReader) As ParserResults
參數
- input
- LookaheadTextReader
傳回
- 屬性
適用於
Parse(TextReader)
public:
virtual Microsoft::AspNetCore::Razor::ParserResults ^ Parse(System::IO::TextReader ^ input);
public virtual Microsoft.AspNetCore.Razor.ParserResults Parse (System.IO.TextReader input);
abstract member Parse : System.IO.TextReader -> Microsoft.AspNetCore.Razor.ParserResults
override this.Parse : System.IO.TextReader -> Microsoft.AspNetCore.Razor.ParserResults
Public Overridable Function Parse (input As TextReader) As ParserResults
參數
- input
- TextReader
傳回
適用於
Parse(LookaheadTextReader, ParserVisitor)
警告
Lookahead-based readers have been deprecated, use overrides which accept a TextReader or ITextDocument instead
public:
virtual void Parse(Microsoft::AspNetCore::Razor::Text::LookaheadTextReader ^ input, Microsoft::AspNetCore::Razor::Parser::ParserVisitor ^ visitor);
[System.Obsolete("Lookahead-based readers have been deprecated, use overrides which accept a TextReader or ITextDocument instead")]
public virtual void Parse (Microsoft.AspNetCore.Razor.Text.LookaheadTextReader input, Microsoft.AspNetCore.Razor.Parser.ParserVisitor visitor);
[<System.Obsolete("Lookahead-based readers have been deprecated, use overrides which accept a TextReader or ITextDocument instead")>]
abstract member Parse : Microsoft.AspNetCore.Razor.Text.LookaheadTextReader * Microsoft.AspNetCore.Razor.Parser.ParserVisitor -> unit
override this.Parse : Microsoft.AspNetCore.Razor.Text.LookaheadTextReader * Microsoft.AspNetCore.Razor.Parser.ParserVisitor -> unit
Public Overridable Sub Parse (input As LookaheadTextReader, visitor As ParserVisitor)
參數
- input
- LookaheadTextReader
- visitor
- ParserVisitor
- 屬性
適用於
Parse(TextReader, ParserVisitor)
public:
virtual void Parse(System::IO::TextReader ^ input, Microsoft::AspNetCore::Razor::Parser::ParserVisitor ^ visitor);
public virtual void Parse (System.IO.TextReader input, Microsoft.AspNetCore.Razor.Parser.ParserVisitor visitor);
abstract member Parse : System.IO.TextReader * Microsoft.AspNetCore.Razor.Parser.ParserVisitor -> unit
override this.Parse : System.IO.TextReader * Microsoft.AspNetCore.Razor.Parser.ParserVisitor -> unit
Public Overridable Sub Parse (input As TextReader, visitor As ParserVisitor)
參數
- input
- TextReader
- visitor
- ParserVisitor