Share via


PropertyBag.IDictionary.Add(Object, Object) Method

Definition

For a description of this member, see the Add(Object, Object) method.

 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

The key of the item to add.

value
Object

The value of the item to add.

Implements

Exceptions

key is not an integer

Remarks

This member is an explicit interface member implementation. It can be used only when the PropertyBag object is cast to an IDictionary interface.

Because property bag keys must be integers, the key parameter must be an integer.

Applies to