PersonalizationDictionary.IDictionary.Add(Object, Object) PersonalizationDictionary.IDictionary.Add(Object, Object) PersonalizationDictionary.IDictionary.Add(Object, Object) Method

Definition

Implements the Add(Object, Object) method for the PersonalizationDictionary class.

 virtual void System.Collections.IDictionary.Add(System::Object ^ key, System::Object ^ value) = System::Collections::IDictionary::Add;
void IDictionary.Add (object key, object value);
Sub Add (key As Object, value As Object) Implements IDictionary.Add

Parameters

key
Object Object Object

The String to use as the key for an item in the personalization dictionary.

value
Object Object Object

The PersonalizationEntry to add to the personalization dictionary.

Implements

Exceptions

key is not a String object.

-or-

value is not a PersonalizationEntry object.

Remarks

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.

Applies to

See also