ExpandoObject.IDictionary<String, Object>.Remove Method

Removes the element that has the specified key from the IDictionary.

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

Syntax

'Declaration
Private Function Remove ( _
    key As String _
) As Boolean Implements IDictionary(Of String, Object).Remove
bool IDictionary<string, Object>.Remove(
    string key
)
private:
virtual bool Remove(
    String^ key
) sealed = IDictionary<String^, Object^>::Remove
private abstract Remove : 
        key:string -> bool  
private override Remove : 
        key:string -> bool
JScript does not support explicit interface implementations.

Parameters

Return Value

Type: System.Boolean
true if the element is successfully removed; otherwise, false. This method also returns false if key was not found in the original IDictionary<TKey, TValue>.

Implements

IDictionary<TKey, TValue>.Remove(TKey)

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library

See Also

Reference

ExpandoObject Class

System.Dynamic Namespace