CommandStateAdd Method

Adds a state element with the provided key and value to the CommandState.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public void Add(
	string key,
	Object? value
)

Parameters

key  String
The object to use as the key of the element to add.
value  Object
The object to use as the value of the element to add.

Implements

IDictionaryTKey, TValueAdd(TKey, TValue)

Exceptions

ArgumentExceptionAn item with the same key has already been added

See Also