PropertyCollection::AddProperty Method (Object^, Object^)

 

Adds a new property to the collection.

Namespace:   Microsoft.VisualStudio.Utilities
Assembly:  Microsoft.VisualStudio.CoreUtility (in Microsoft.VisualStudio.CoreUtility.dll)

public:
void AddProperty(
	Object^ key,
	Object^ property
)

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.

Return to top
Show: