Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

.NET Framework (current version)

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
Available since 4.0
Return to top
© 2017 Microsoft