Click or drag to resize
IsolatedStorageSettings Class
Provides a System.Collections.Generic.Dictionary<TKey,TValue> that stores key-value pairs in isolated storage.
Inheritance Hierarchy
SystemObject
  System.IO.IsolatedStorageIsolatedStorageSettings

Namespace: System.IO.IsolatedStorage
Assembly: CSharpXamlForHtml5 (in CSharpXamlForHtml5.dll) Version: 1.0.0.0
Syntax
C#
public sealed class IsolatedStorageSettings : IEnumerable<KeyValuePair<string, Object>>, 
	IEnumerable

The IsolatedStorageSettings type exposes the following members.

Methods
  NameDescription
Public methodAdd
Adds an entry to the dictionary for the key-value pair.
Public methodClear
Resets the count of items stored in System.IO.IsolatedStorage.IsolatedStorageSettings to zero and releases all references to elements in the collection.
Public methodContains
Determines if the application settings dictionary contains the specified key.
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetEnumerator
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRemove
Removes the entry with the specified key.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryGetValueT
Gets a value for the specified key.
Top
Properties
  NameDescription
Public propertyStatic memberApplicationSettings
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.
Public propertyCount
Gets the number of key-value pairs that are stored in the dictionary.
Public propertyItem
Gets or sets the value associated with the specified key.
Public propertyKeys
Gets a collection that contains the keys in the dictionary.
Public propertyValues
Gets a collection that contains the values in the dictionary.
Top
Examples
Here is how to use the IsolatedStorageSettings:
C#
//Write in the IsolatedStorageSettings:
IsolatedStorageSettings.ApplicationSettings["someKey"] = "someValue";
//Read from it:
string value;
string myString = IsolatedStorageSettings.ApplicationSettings.TryGetValue("someKey", out value);
See Also