IBotDataBag IBotDataBag IBotDataBag Interface

Definition

A property bag of bot data.

public interface IBotDataBag
type IBotDataBag = interface
Public Interface IBotDataBag

Properties

Count Count Count

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

Methods

Clear() Clear() Clear()

Removes all of the values from data bag.

ContainsKey(String) ContainsKey(String) ContainsKey(String)

Checks if data bag contains a value with specified key

RemoveValue(String) RemoveValue(String) RemoveValue(String)

Removes the specified key from the bot data bag.

SetValue<T>(String, T) SetValue<T>(String, T) SetValue<T>(String, T)

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

TryGetValue<T>(String, T) TryGetValue<T>(String, T) TryGetValue<T>(String, T)

Gets the value associated with the specified key.

Extension Methods

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

Gets the value associated with the specified key.

GetValueOrDefault<T>(IBotDataBag, String, T) GetValueOrDefault<T>(IBotDataBag, String, T) GetValueOrDefault<T>(IBotDataBag, String, T)

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

Applies to