Method Add
Add(string, ThemeScope)
Adds an element with the provided key and value to the IDictionary<TKey, TValue>.
public void Add(string key, ThemeScope value)
Parameters
key
stringThe object to use as the key of the element to add.
value
ThemeScopeThe object to use as the value of the element to add.
Exceptions
- ArgumentNullException
key
is null.- ArgumentException
An element with the same key already exists in the IDictionary<TKey, TValue>.
- NotSupportedException
The IDictionary<TKey, TValue> is read-only.
Add(KeyValuePair<string, ThemeScope>)
Adds an item to the ICollection<T>.
public void Add(KeyValuePair<string, ThemeScope> item)
Parameters
item
KeyValuePair<string, ThemeScope>The object to add to the ICollection<T>.
Exceptions
- NotSupportedException
The ICollection<T> is read-only.