Preferences.ContainsKey Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.