共用方式為


LanguageGeneratorExtensions.UseLanguagePolicy 方法

定義

將語言原則註冊為預設原則。

public static Microsoft.Bot.Builder.Dialogs.DialogManager UseLanguagePolicy (this Microsoft.Bot.Builder.Dialogs.DialogManager dialogManager, Microsoft.Bot.Builder.Dialogs.Adaptive.LanguagePolicy policy);
static member UseLanguagePolicy : Microsoft.Bot.Builder.Dialogs.DialogManager * Microsoft.Bot.Builder.Dialogs.Adaptive.LanguagePolicy -> Microsoft.Bot.Builder.Dialogs.DialogManager
<Extension()>
Public Function UseLanguagePolicy (dialogManager As DialogManager, policy As LanguagePolicy) As DialogManager

參數

dialogManager
DialogManager

DialogManager 將服務新增至 。

policy
LanguagePolicy

要使用的 LanguagePolicy

傳回

botAdapter。

適用於