Udostępnij przez


ResourceMultiLanguageGenerator.TryGetGenerator Metoda

Definicja

Implementacja wyszukiwania według ustawień regionalnych. Ta funkcja używa identyfikatorów resourceId i resourceExplorer do wyszukiwania.

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

Kontekście.

locale
String

ustawienia regionalne do wyszukiwania.

languageGenerator
Lazy<LanguageGenerator>

found LanguageGenerator.

Zwraca

wartość true, jeśli zostanie znaleziona.

Dotyczy