GeneratorResults 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GeneratorResults(ParserResults, CodeCompileUnit, IDictionary<Int32,GeneratedCodeMapping>) |
此類型/成員支援.NET Framework基礎結構,不適合直接從您的程式碼使用。初始化 類別的新實例 GeneratorResults 。 |
GeneratorResults(Block, IList<RazorError>, CodeCompileUnit, IDictionary<Int32,GeneratedCodeMapping>) |
此類型/成員支援.NET Framework基礎結構,不適合直接從您的程式碼使用。初始化 類別的新實例 GeneratorResults 。 |
GeneratorResults(Boolean, Block, IList<RazorError>, CodeCompileUnit, IDictionary<Int32,GeneratedCodeMapping>) |
此類型/成員支援.NET Framework基礎結構,不適合直接從您的程式碼使用。初始化 類別的新實例 GeneratorResults 。 |
GeneratorResults(ParserResults, CodeCompileUnit, IDictionary<Int32,GeneratedCodeMapping>)
此類型/成員支援.NET Framework基礎結構,不適合直接從您的程式碼使用。初始化 類別的新實例 GeneratorResults 。
public GeneratorResults (System.Web.Razor.ParserResults parserResults, System.CodeDom.CodeCompileUnit generatedCode, System.Collections.Generic.IDictionary<int,System.Web.Razor.Generator.GeneratedCodeMapping> designTimeLineMappings);
new System.Web.Razor.GeneratorResults : System.Web.Razor.ParserResults * System.CodeDom.CodeCompileUnit * System.Collections.Generic.IDictionary<int, System.Web.Razor.Generator.GeneratedCodeMapping> -> System.Web.Razor.GeneratorResults
Public Sub New (parserResults As ParserResults, generatedCode As CodeCompileUnit, designTimeLineMappings As IDictionary(Of Integer, GeneratedCodeMapping))
參數
- parserResults
- ParserResults
剖析器結果。
- generatedCode
- CodeCompileUnit
產生的程式碼。
- designTimeLineMappings
- IDictionary<Int32,GeneratedCodeMapping>
設計時間產生的程式碼對應字典。
適用於
GeneratorResults(Block, IList<RazorError>, CodeCompileUnit, IDictionary<Int32,GeneratedCodeMapping>)
此類型/成員支援.NET Framework基礎結構,不適合直接從您的程式碼使用。初始化 類別的新實例 GeneratorResults 。
public GeneratorResults (System.Web.Razor.Parser.SyntaxTree.Block document, System.Collections.Generic.IList<System.Web.Razor.Parser.SyntaxTree.RazorError> parserErrors, System.CodeDom.CodeCompileUnit generatedCode, System.Collections.Generic.IDictionary<int,System.Web.Razor.Generator.GeneratedCodeMapping> designTimeLineMappings);
new System.Web.Razor.GeneratorResults : System.Web.Razor.Parser.SyntaxTree.Block * System.Collections.Generic.IList<System.Web.Razor.Parser.SyntaxTree.RazorError> * System.CodeDom.CodeCompileUnit * System.Collections.Generic.IDictionary<int, System.Web.Razor.Generator.GeneratedCodeMapping> -> System.Web.Razor.GeneratorResults
Public Sub New (document As Block, parserErrors As IList(Of RazorError), generatedCode As CodeCompileUnit, designTimeLineMappings As IDictionary(Of Integer, GeneratedCodeMapping))
參數
- document
- Block
文件。
- parserErrors
- IList<RazorError>
剖析器錯誤。
- generatedCode
- CodeCompileUnit
產生的程式碼。
- designTimeLineMappings
- IDictionary<Int32,GeneratedCodeMapping>
設計時間產生的程式碼對應字典。
適用於
GeneratorResults(Boolean, Block, IList<RazorError>, CodeCompileUnit, IDictionary<Int32,GeneratedCodeMapping>)
此類型/成員支援.NET Framework基礎結構,不適合直接從您的程式碼使用。初始化 類別的新實例 GeneratorResults 。
protected GeneratorResults (bool success, System.Web.Razor.Parser.SyntaxTree.Block document, System.Collections.Generic.IList<System.Web.Razor.Parser.SyntaxTree.RazorError> parserErrors, System.CodeDom.CodeCompileUnit generatedCode, System.Collections.Generic.IDictionary<int,System.Web.Razor.Generator.GeneratedCodeMapping> designTimeLineMappings);
new System.Web.Razor.GeneratorResults : bool * System.Web.Razor.Parser.SyntaxTree.Block * System.Collections.Generic.IList<System.Web.Razor.Parser.SyntaxTree.RazorError> * System.CodeDom.CodeCompileUnit * System.Collections.Generic.IDictionary<int, System.Web.Razor.Generator.GeneratedCodeMapping> -> System.Web.Razor.GeneratorResults
Protected Sub New (success As Boolean, document As Block, parserErrors As IList(Of RazorError), generatedCode As CodeCompileUnit, designTimeLineMappings As IDictionary(Of Integer, GeneratedCodeMapping))
參數
- success
- Boolean
如果程式碼產生成功,則為 true;否則為 false。
- document
- Block
文件。
- parserErrors
- IList<RazorError>
剖析器錯誤。
- generatedCode
- CodeCompileUnit
產生的程式碼。
- designTimeLineMappings
- IDictionary<Int32,GeneratedCodeMapping>
設計時間產生的程式碼對應字典。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應