Share via


Preferences.ContainsKey Method

Definition

Overloads

ContainsKey(String)

Checks the existence of a given key.

ContainsKey(String, String)

Checks the existence of a given key.

ContainsKey(String)

Checks the existence of a given key.

public static bool ContainsKey (string key);

Parameters

key
System.String

Preference key.

Returns

System.Boolean

Returns true if the key exists.

Applies to

ContainsKey(String, String)

Checks the existence of a given key.

public static bool ContainsKey (string key, string sharedName);

Parameters

key
System.String

Preference key.

sharedName
System.String

Shared container name.

Returns

System.Boolean

Returns true if the key exists.

Applies to