共用方式為


Templates.ParseFile(String, ImportResolverDelegate, ExpressionParser) 方法

定義

剖析器,將 lg 內容轉換成 Templates

public static Microsoft.Bot.Builder.LanguageGeneration.Templates ParseFile (string filePath, Microsoft.Bot.Builder.LanguageGeneration.ImportResolverDelegate importResolver = default, AdaptiveExpressions.ExpressionParser expressionParser = default);
static member ParseFile : string * Microsoft.Bot.Builder.LanguageGeneration.ImportResolverDelegate * AdaptiveExpressions.ExpressionParser -> Microsoft.Bot.Builder.LanguageGeneration.Templates
Public Shared Function ParseFile (filePath As String, Optional importResolver As ImportResolverDelegate = Nothing, Optional expressionParser As ExpressionParser = Nothing) As Templates

參數

filePath
String

LG 檔案的絕對路徑。

importResolver
ImportResolverDelegate

解析程式,將 LG 匯入識別碼解析為範本文字。

expressionParser
ExpressionParser

expressionEngine 運算式引擎,用於評估運算式。

傳回

新的 Templates 實體。

適用於