IsolatedStorageSettings Class |
Namespace: System.IO.IsolatedStorage
public sealed class IsolatedStorageSettings : IEnumerable<KeyValuePair<string, Object>>, IEnumerable
The IsolatedStorageSettings type exposes the following members.
Name | Description | |
---|---|---|
Add |
Adds an entry to the dictionary for the key-value pair.
| |
Clear |
Resets the count of items stored in System.IO.IsolatedStorage.IsolatedStorageSettings
to zero and releases all references to elements in the collection.
| |
Contains |
Determines if the application settings dictionary contains the specified
key.
| |
Equals(Object) | (Inherited from Object.) | |
GetEnumerator | ||
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Remove |
Removes the entry with the specified key.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetValueT |
Gets a value for the specified key.
|
Name | Description | |
---|---|---|
ApplicationSettings |
Gets an instance of System.IO.IsolatedStorage.IsolatedStorageSettings that
contains the contents of the application's System.IO.IsolatedStorage.IsolatedStorageFile,
scoped at the application level, or creates a new instance of System.IO.IsolatedStorage.IsolatedStorageSettings
if one does not exist.
| |
Count |
Gets the number of key-value pairs that are stored in the dictionary.
| |
Item |
Gets or sets the value associated with the specified key.
| |
Keys |
Gets a collection that contains the keys in the dictionary.
| |
Values |
Gets a collection that contains the values in the dictionary.
|
//Write in the IsolatedStorageSettings: IsolatedStorageSettings.ApplicationSettings["someKey"] = "someValue"; //Read from it: string value; string myString = IsolatedStorageSettings.ApplicationSettings.TryGetValue("someKey", out value);