ResourceMultiLanguageGenerator.TryGetGenerator 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.
Implementation of lookup by locale. This uses resourceId and ResourceExplorer to lookup.
public override bool TryGetGenerator (Microsoft.Bot.Builder.Dialogs.DialogContext dialogContext, string locale, out Lazy<Microsoft.Bot.Builder.Dialogs.Adaptive.LanguageGenerator> languageGenerator);
override this.TryGetGenerator : Microsoft.Bot.Builder.Dialogs.DialogContext * string * Lazy -> bool
Public Overrides Function TryGetGenerator (dialogContext As DialogContext, locale As String, ByRef languageGenerator As Lazy(Of LanguageGenerator)) As Boolean
Parameters
- dialogContext
- DialogContext
context.
- locale
- String
locale to lookup.
- languageGenerator
- Lazy<LanguageGenerator>
found LanguageGenerator.
Returns
true if found.