Język

ResourceMultiLanguageGenerator.TryGetGenerator Metoda

Definicja

Implementacja wyszukiwania według lokalizacji. Do wyszukiwania używa się resourceId i ResourceExplorer.

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

Parametry

dialogContext
DialogContext

kontekst.

locale
String

Miejsce do sprawdzenia.

languageGenerator
Lazy<LanguageGenerator>

znalazłem LanguageGenerator.

Zwraca

prawda, jeśli ją znajdziemy.

Dotyczy