ExpandoObject.ICollection<KeyValuePair<String, Object>>.Remove Method

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Removes a key and value from the collection.

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

Syntax

'Declaration
Private Function Remove ( _
    item As KeyValuePair(Of String, Object) _
) As Boolean Implements ICollection(Of KeyValuePair(Of String, Object)).Remove
bool ICollection<KeyValuePair<string, Object>>.Remove(
    KeyValuePair<string, Object> item
)

Parameters

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>.

Implements

ICollection<T>.Remove(T)

Version Information

Silverlight

Supported in: 5, 4

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.