RazorCodeLanguage.CreateChunkGenerator 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建構區塊產生器。 必須在 EVERY 呼叫上傳回新的實例,以確保執行緒安全
public:
abstract Microsoft::AspNetCore::Razor::Chunks::Generators::RazorChunkGenerator ^ CreateChunkGenerator(System::String ^ className, System::String ^ rootNamespaceName, System::String ^ sourceFileName, Microsoft::AspNetCore::Razor::RazorEngineHost ^ host);
public abstract Microsoft.AspNetCore.Razor.Chunks.Generators.RazorChunkGenerator CreateChunkGenerator (string className, string rootNamespaceName, string sourceFileName, Microsoft.AspNetCore.Razor.RazorEngineHost host);
abstract member CreateChunkGenerator : string * string * string * Microsoft.AspNetCore.Razor.RazorEngineHost -> Microsoft.AspNetCore.Razor.Chunks.Generators.RazorChunkGenerator
Public MustOverride Function CreateChunkGenerator (className As String, rootNamespaceName As String, sourceFileName As String, host As RazorEngineHost) As RazorChunkGenerator
參數
- className
- String
- rootNamespaceName
- String
- sourceFileName
- String
- host
- RazorEngineHost