PropertyDescriptorCollection.IDictionary.Add Method (Object, Object)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

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

void IDictionary.Add(
	object key,
	object value
)

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: