Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SynchronizedHashtable.Add Method

Adds an element with the provided key and value to the IDictionary object.

[Visual Basic]
Public NotOverridable Sub Add( _
   ByVal key As Object, _
   ByVal value As Object _
) _
    Implements IDictionary.Add
[C#]
public void Add(
   object key,
   object value
);

Parameters

key
The Object to use as the key of the element to add.
value
The Object to use as the value of the element to add.

Implements

IDictionary.Add

Exceptions

Exception Type Condition
ArgumentException An element with the same key already exists in the IDictionary object.
ArgumentNullException key is null.
NotSupportedException The IDictionary is read-only.-or- The IDictionary has a fixed size.

See Also

SynchronizedHashtable Class | Spring.Collections Namespace