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!

Dictionary.Add

Adds an entry with the specified key and value into the Dictionary.

[Visual Basic]
Overridable Public Sub Add( _
   ByVal key As Object, _
   ByVal value As Object _
)
[C#]
public virtual void Add(
   object key,
   object value
);
[C++]
public: virtual void Add(
   Object* key,
   Object* value
);
[JScript]
public function Add(
   key : Object,
   value : Object
);

Parameters

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

Return Value

None.

Exceptions

Exception Type Condition
ArgumentNullException key is a null reference (in Visual Basic Nothing).
ArgumentException An entry with the same key already exists in the Dictionary.
NotSupportedException The Dictionary is read-only.

Remarks

This method can be overridden by a derived class.

See Also

Dictionary Class | Dictionary Members | System.Collections Namespace | Remove