Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Remove Method (KeyValuePair(String, Object))
Collapse the table of content
Expand the table of content

NameScope.Remove Method (KeyValuePair<String, Object>)

.NET Framework 4.6 and 4.5

Removes the specific object from the collection.

Namespace:  System.Windows
Assembly:  WindowsBase (in WindowsBase.dll)

public bool Remove(
	KeyValuePair<string, Object> item


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

The object to remove from the collection, specified as a KeyValuePair<TKey, TValue> (key is String, value is Object).

Return Value

Type: System.Boolean
true if item was successfully removed from the collection, otherwise false. Also returns false if the item was not found in the collection.



Because NameScope is a dictionary there is no concept of first occurrence; any given KeyValuePair<TKey, TValue> is guaranteed unique.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
© 2015 Microsoft