Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ExceptionHandlerAdvice.ExceptionHandlerTable.Add(Object, Object) Method

Adds an element with the specified key and value into the Hashtable.

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

Parameters

key
The key of the element to add.
value
The value of the element to add. The value can be null.

Implements

IDictionary.Add

Exceptions

Exception Type Condition
ArgumentNullException key is null.
ArgumentException An element with the same key already exists in the Hashtable. or key is not a string or value is not an IExceptionHandler.
NotSupportedException The Hashtable is read-only.-or- The Hashtable has a fixed size.

See Also

ExceptionHandlerTable Class | Spring.Aspects.Exceptions Namespace | ExceptionHandlerTable.Add Overload List