PropertyCollection::AddProperty Method (Object^, Object^)
Adds a new property to the collection.
Assembly: Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)
Parameters
- key
-
Type:
System::Object^
The key by which the property can be retrieved. Must be non-null.
- property
-
Type:
System::Object^
The property to associate with the key.
| Exception | Condition |
|---|---|
| ArgumentNullException | key is null. |
| ArgumentException | An element with the same key already exists in the collection. |
Show: