IBotDataBag 接口

定义

机器人数据的属性包。

public interface IBotDataBag
type IBotDataBag = interface
Public Interface IBotDataBag

属性

Count

获取包含在 IBotDataBag 中的键/值对的数目。

方法

Clear()

从数据包中删除所有值。

ContainsKey(String)

检查数据包是否包含具有指定键的值

RemoveValue(String)

从机器人数据包中删除指定的密钥。

SetValue<T>(String, T)

将指定的键和值添加到机器人数据包。

TryGetValue<T>(String, T)

获取与指定键关联的值。

扩展方法

Get<T>(IBotDataBag, String)
已过时.

机器人数据的属性包。

GetValue<T>(IBotDataBag, String)

获取与指定键关联的值。

GetValueOrDefault<T>(IBotDataBag, String, T)

获取与指定键关联的值;如果未找到,则获取默认值。

适用于