NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IDictionary.Add

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
);

Parameters

key
The key of the entry to add.
value
The value of the entry to add.

Exceptions

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.

See Also

IDictionary Interface | IDictionary Members | System.Collections Namespace