- item
- The object to remove from the ICollection.
| Visual Basic (Declaration) | |
|---|---|
Overloads Public Overridable Function Remove( _ ByVal item As KeyValuePair(Of TKey,TValue) _ ) As Boolean | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As ThreadSafeDictionary(Of TKey,TValue) Dim item As KeyValuePair(Of TKey,TValue) Dim value As Boolean value = instance.Remove(item) | |
| C# | |
|---|---|
public virtual bool Remove( KeyValuePair<TKey,TValue> item ) | |
| C++/CLI | |
|---|---|
public: virtual 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 is read-only. |
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
Copy Code