ResourceDictionary.HasKey(Object) ResourceDictionary.HasKey(Object) ResourceDictionary.HasKey(Object) ResourceDictionary.HasKey(Object) Method

Definition

Returns whether the ResourceDictionary has an entry with the requested key.

public : Platform::Boolean HasKey(Platform::Object key)
bool HasKey(winrt::Windows::Foundation::IInspectable key) const;
public bool HasKey(Object key)
Public Function HasKey(key As Object) As bool

Parameters

key
Object Object

The requested key.

Returns

bool bool

true if the ResourceDictionary has an entry with the requested key; otherwise, false.

Remarks

Note

The equivalent Microsoft .NETAPI is ContainsKey.

See also