Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft