PropertyDescriptorCollection::IDictionary::Add Method (Object^, Object^)

 

Adds an element with the provided key and value to the IDictionary.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

private:
virtual void Add(
	Object^ key,
	Object^ value
) sealed = IDictionary::Add

Parameters

key
Type: System::Object^

The Object to use as the key of the element to add.

value
Type: System::Object^

The Object to use as the value of the element to add.

Exception Condition
NotSupportedException

The collection is read-only.

ArgumentException

value is null.

.NET Framework
Available since 1.1
Return to top
Show: