NSDictionary.IDictionary.Add(Object, Object) Method

Definition

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.

Applies to