Remove Method (String)
Collapse the table of content
Expand the table of content

ResourceDictionary.Remove Method (String)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Removes a specific item from the ResourceDictionary.

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

'Declaration
Public Sub Remove ( _
	key As String _
)

Parameters

key
Type: System.String
The string key of the item to remove.

ExceptionCondition
ArgumentNullException

key is Nothing.

The general definition of Remove is that it removes the "first occurrence" of an item. Because this is a keyed dictionary, each item is identified uniquely by key, and the concept of "first occurrence" does not apply.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft