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);
abstract member System.Collections.IDictionary.Add : obj * obj -> unit
override this.System.Collections.IDictionary.Add : obj * obj -> unit
Sub Add (key As Object, value As Object) Implements IDictionary.Add

Parameters

key
Object

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

value
Object

The PersonalizationEntry to add to the personalization dictionary.

Implements

Exceptions

value is null.

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