次の方法で共有


IXRResourceDictionary::Contains (Windows Embedded CE 6.0)

1/6/2010

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

Syntax

virtual HRESULT STDMETHODCALLTYPE Contains(
    const WCHAR * pKey, 
    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, and a value of false indicates it is not in this resource dictionary.

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 the XAML is parsed and loaded by your application.

.NET Framework Equivalent

System.Windows.ResourceDictionary.Contains

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRResourceDictionary