ExpandoObject::ICollection<KeyValuePair<String^, Object^>>::Remove Method (KeyValuePair<String^, Object^>)

 

Removes a key and value from the collection.

Namespace:   System.Dynamic
Assembly:  System.Core (in System.Core.dll)

private:
virtual bool Remove(
	KeyValuePair<String^, Object^> item
) sealed = ICollection<KeyValuePair<String^, Object^>>::Remove

Parameters

item
Type: System.Collections.Generic::KeyValuePair<String^, Object^>

The KeyValuePair<TKey, TValue> structure that represents the key and value to remove from the collection.

Return Value

Type: System::Boolean

true if the key and value are successfully found and removed; otherwise, false. This method returns false if the key and value are not found in the ICollection<T>.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show: