Share via


IBotDataBag Interface

Definition

A property bag of bot data.

public interface IBotDataBag
type IBotDataBag = interface
Public Interface IBotDataBag

Properties

Count

Gets the number of key/value pairs contained in the IBotDataBag.

Methods

Clear()

Removes all of the values from data bag.

ContainsKey(String)

Checks if data bag contains a value with specified key

RemoveValue(String)

Removes the specified key from the bot data bag.

SetValue<T>(String, T)

Adds the specified key and value to the bot data bag.

TryGetValue<T>(String, T)

Gets the value associated with the specified key.

Extension Methods

Get<T>(IBotDataBag, String)
GetValue<T>(IBotDataBag, String)

Gets the value associated with the specified key.

GetValueOrDefault<T>(IBotDataBag, String, T)

Gets the value associated with the specified key or a default value if not found.

Applies to