Contains Method

ResourceDictionary.Contains Method

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

Returns a value that indicates whether a specified key exists in the ResourceDictionary.

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

'Declaration
Public Function Contains ( _
	key As Object _
) As Boolean

Parameters

key
Type: System.Object
The key to check for in the ResourceDictionary.

Return Value

Type: System.Boolean
true if an item with that key exists in the ResourceDictionary; otherwise, false.

Implements

IDictionary.Contains(Object)

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft