語言

BotConfiguration 類別

定義

警告

This class is deprecated. See https://aka.ms/bot-file-basics for more information.

BotConfiguration 代表機器人的設定資訊。

[System.Obsolete("This class is deprecated.  See https://aka.ms/bot-file-basics for more information.", false)]
public class BotConfiguration
[<System.Obsolete("This class is deprecated.  See https://aka.ms/bot-file-basics for more information.", false)>]
type BotConfiguration = class
Public Class BotConfiguration
繼承
BotConfiguration
屬性

備註

它通常從磁碟上的 .bot 檔案載入。 此類別實作加密與操作記憶體中配置表示的方法。

建構函式

名稱 Description
BotConfiguration()
已淘汰.

BotConfiguration 代表機器人的設定資訊。

屬性

名稱 Description
Description
已淘汰.

取得或設定機器人的描述。

Name
已淘汰.

取得或設定機器人名稱。

Padlock
已淘汰.

取得或設定掛鎖——用來驗證秘密對所有加密欄位的一致性。

Properties
已淘汰.

取得或集合的性質,這些屬性並未被其他方式定義。

Services
已淘汰.

接收或設定連接的服務。

Version
已淘汰.

取得或設定版本。

方法

名稱 Description
ClearSecret()
已淘汰.

清除秘密。

ConnectService(ConnectedService)
已淘汰.

將服務連線至 Bot 檔案。

Decrypt(String)
已淘汰.

解密記憶體組態中的所有值。

DisconnectService(String)
已淘汰.

依照 ID 移除服務。

DisconnectServiceByNameOrId(String)
已淘汰.

移除服務名稱或 ID 來移除。

DisconnectServiceByNameOrId<T>(String)
已淘汰.

移除特定類型的服務,並依其名稱或識別碼移除。

Encrypt(String)
已淘汰.

加密記憶體組態中的所有值。

FindService(String)
已淘汰.

依ID尋找服務。

FindServiceByNameOrId(String)
已淘汰.

透過名稱或識別號找到服務。

FindServiceByNameOrId<T>(String)
已淘汰.

透過名稱或識別碼找到特定類型的服務。

GenerateKey()
已淘汰.

產生適合加密的新金鑰。

Load(String, String)
已淘汰.

從 .bot 檔案載入組態。

LoadAsync(String, String)
已淘汰.

從 .bot 檔案載入組態。

LoadFromFolder(String, String)
已淘汰.

在資料夾中尋找並載入資料夾中的第一個 .bot 檔案,以載入 Bot 組態。

LoadFromFolderAsync(String, String)
已淘汰.

在資料夾中尋找並載入資料夾中的第一個 .bot 檔案,以載入 Bot 組態。

MigrateData()
已淘汰.

將舊紀錄遷移到新紀錄。

Save(String)
已淘汰.

使用秘密儲存盤案。

SaveAs(String, String)
已淘汰.

將組態儲存至 .bot 檔案。

SaveAsAsync(String, String)
已淘汰.

將組態儲存至 .bot 檔案。

SaveAsync(String)
已淘汰.

使用秘密儲存盤案。

ValidateSecret(String)
已淘汰.

藉由使用秘密解密 secretKey,確定密碼正確無誤。

擴充方法

名稱 Description
IsProjectNameSpaceless(BotConfiguration, String)
已淘汰.

檢查 Project 名稱是否包含空白。

ValidateLuisKeyExistence(BotConfiguration)
已淘汰.

檢查 的 key LuisService 是否已被定義。

ValidateQnAKeyExistence(BotConfiguration)
已淘汰.

檢查 的 key QnAMakerService 是否已被定義。

適用於