NSDictionary.IDictionary.Add(Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an element with the provided key and value to the dictionary.
void IDictionary.Add(object key, object value);
void IDictionary.Add(object key, object? value);
abstract member System.Collections.IDictionary.Add : obj * obj -> unit
override this.System.Collections.IDictionary.Add : obj * obj -> unit
Parameters
- key
- Object
The key of the element to add.
- value
- Object
The value of the element to add.
Implements
Exceptions
Always thrown as the dictionary is read-only.