Visual Basic (Declaration) | |
---|---|
Public Overloads Function Remove( _ ByVal item As KeyValuePair(Of TKey,TValue) _ ) As Boolean |
C# | |
---|---|
public bool Remove( KeyValuePair<TKey,TValue> item ) |
Parameters
- item
- The object to remove from the ICollection.
Return Value
true if item was successfully removed from the ICollection; otherwise, false. This method also returns false if item is not found in the original ICollection.Exception | Description |
---|---|
System.NotSupportedException | The ICollection is read-only. |
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7