Partager via


LanguageGeneratorExtensions.UseLanguagePolicy Méthode

Définition

Inscrivez la stratégie de langue en tant que stratégie par défaut.

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

Paramètres

dialogManager
DialogManager

DialogManager à laquelle ajouter des services.

policy
LanguagePolicy

LanguagePolicy à utiliser.

Retours

botAdapter.

S’applique à