Visual Basic (Declaration) | |
---|---|
Public Overloads Sub Add( _ ByVal item As KeyValuePair(Of TKey,TValue) _ ) |
C# | |
---|---|
public void Add( KeyValuePair<TKey,TValue> item ) |
Parameters
- item
- The object to add to the ICollection.
Exception | Description |
---|---|
System.ArgumentException | An element with the same key already exists in the IDictionary. |
System.NotSupportedException | The IDictionary is read-only. |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7