Share via


IBotDataBag.SetValue<T>(String, T) Method

Definition

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

public void SetValue<T> (string key, T value);
abstract member SetValue : string * 'T -> unit
Public Sub SetValue(Of T) (key As String, value As T)

Type Parameters

T

The type of the value to get.

Parameters

key
String

The key of the element to add.

value
T

The value of the element to add. The value can be null for reference types.

Applies to