LanguageGeneratorExtensions.UseLanguagePolicy Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Register language policy as default policy.
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
Parameters
- dialogManager
- DialogManager
DialogManager to add services to.
- policy
- LanguagePolicy
LanguagePolicy to use.
Returns
botAdapter.