Langue

BotConfiguration.LoadFromFolderAsync(String, String) Méthode

Définition

Chargez la configuration du bot en recherchant un dossier et en chargeant le premier fichier .bot dans le dossier.

public static System.Threading.Tasks.Task<Microsoft.Bot.Configuration.BotConfiguration> LoadFromFolderAsync(string folder, string secret = default);
static member LoadFromFolderAsync : string * string -> System.Threading.Tasks.Task<Microsoft.Bot.Configuration.BotConfiguration>
Public Shared Function LoadFromFolderAsync (folder As String, Optional secret As String = Nothing) As Task(Of BotConfiguration)

Paramètres

folder
String

Dossier pour rechercher les fichiers bots.

secret
String

Secret à utiliser pour chiffrer des clés.

Retours

Task de BotConfiguration.

S’applique à