PersonalizationDictionary.IDictionary.Add Method (Object, Object)
.NET Framework (current version)
Implements the IDictionary.Add method for the PersonalizationDictionary class.
Assembly: System.Web (in System.Web.dll)
private abstract Add : key:Object * value:Object -> unit private override Add : key:Object * value:Object -> unit
Parameters
- key
-
Type:
System.Object
The String to use as the key for an item in the personalization dictionary.
- value
-
Type:
System.Object
The PersonalizationEntry to add to the personalization dictionary.
Implements
IDictionary.Add(Object, Object)| Exception | Condition |
|---|---|
| ArgumentNullException | value is null. |
| ArgumentException |
The Add method checks several details to ensure the validity of value and key before attempting to add them to the personalization dictionary. If the checks are successful, the method calls the PersonalizationDictionary class's own Add method, passing to it the key and value parameters.
.NET Framework
Available since 2.0
Available since 2.0
Show: