When implemented by a class, adds an entry with the provided key and value into the IDictionary.
[Visual Basic] Sub Add( _ ByVal key As Object, _ ByVal value As Object _ ) [C#] void Add( object key, object value ); [C++] void Add( Object* key, Object* value ) = 0; [JScript] function Add( key : Object, value : Object );
Exception Type | Condition |
---|---|
ArgumentException | key is null reference object.
OR, an entry with the same key already exists in the IDictionary. |
NotSupportedException | The IDictionary is read-only. |
IDictionary Interface | IDictionary Members | System.Collections Namespace