ApplicationDataContainerSettings.HasKey(String) Method

Definition

Determines whether there is an application setting with the specified key.

public:
 virtual bool HasKey(Platform::String ^ key) = IMap<Platform::String ^, Platform::Object ^>::HasKey;
bool HasKey(winrt::hstring const & key);
public bool HasKey(string key);
function hasKey(key)
Public Function HasKey (key As String) As Boolean

Parameters

key
String

The key.

Returns

Boolean

True if the key is found; otherwise false.

Implements

<xref href="Windows.Foundation.Collections.IMap`2.HasKey(`0)?alt=Windows.Foundation.Collections.IMap`2.HasKey(`0)&text=HasKey(K)" data-throw-if-not-resolved="True"/>

Examples

See the code example in ApplicationDataContainer.

Applies to

See also