語言

IBotDataBag 介面

定義

一個包含機器人資料的財產袋。

public interface IBotDataBag
type IBotDataBag = interface
Public Interface IBotDataBag

屬性

名稱 Description
Count

取得包含在 IBotDataBag中的鍵/值對數量。

方法

名稱 Description
Clear()

移除資料包中的所有數值。

ContainsKey(String)

檢查資料袋是否包含指定金鑰的值

RemoveValue(String)

從機器人資料袋中移除指定的金鑰。

SetValue<T>(String, T)

將指定的鍵值加入機器人資料袋。

TryGetValue<T>(String, T)

取得與指定索引鍵相關聯的值。

擴充方法

名稱 Description
Get<T>(IBotDataBag, String)
已淘汰.

一個包含機器人資料的財產袋。

GetValue<T>(IBotDataBag, String)

取得與指定索引鍵相關聯的值。

GetValueOrDefault<T>(IBotDataBag, String, T)

取得與指定金鑰相關的值,或若未找到則為預設值。

適用於