IXRResourceDictionary::Contains (Compact 2013)

3/28/2014

This method determines whether this resource dictionary contains the item that has the specified key name.

Syntax

virtual HRESULT STDMETHODCALLTYPE Contains(
    __in const WCHAR * pKey, 
    __out bool *pContains
) = 0;

Parameters

  • pKey
    [in] String that contains the key name of the resource you are looking for.
  • pContains
    [out] Boolean value that indicates whether the resource is in this resource dictionary. A value of true indicates the resource is in this resource dictionary; a value of false indicates it is not.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

The key name of a resource is defined in XAML with the x:Key attribute before your application parses and loads the XAML.

.NET Framework Equivalent

System.Windows.ResourceDictionary.Contains

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRResourceDictionary