Click or drag to resize

CachedIniFile Class

Class that caches a text INI file
Inheritance Hierarchy
System.Object
  Arsenal.ImageMounter.IO.NullSafeDictionary<String, NullSafeDictionary<String, String>>
    Arsenal.ImageMounter.IO.CachedIniFile

Namespace:  Arsenal.ImageMounter.IO
Assembly:  Arsenal.ImageMounter (in Arsenal.ImageMounter.dll) Version: 1.0.0.0 (3.4.140.0)
Syntax
[ComVisibleAttribute(false)]
public class CachedIniFile : NullSafeDictionary<string, NullSafeDictionary<string, string>>

The CachedIniFile type exposes the following members.

Constructors
  NameDescription
Public methodCachedIniFile()
Creates a new empty CachedIniFile object
Public methodCachedIniFile(Stream)
Creates a new CachedIniFile object and fills it with the contents of the specified INI file
Public methodCachedIniFile(String)
Creates a new CachedIniFile object and fills it with the contents of the specified INI file
Public methodCachedIniFile(Stream, Encoding)
Creates a new CachedIniFile object and fills it with the contents of the specified INI file
Public methodCachedIniFile(String, Encoding)
Creates a new CachedIniFile object and fills it with the contents of the specified INI file
Top
Properties
  NameDescription
Public propertyCount (Inherited from NullSafeDictionary<TKey, TValue>.)
Public propertyEncoding
Text encoding of last INI file loaded into this object.
Public propertyFilename
Name of last INI file loaded into this object.
Public propertyIsReadOnly (Inherited from NullSafeDictionary<TKey, TValue>.)
Public propertyItem
Gets or sets the item for a key in dictionary. If no item exists for key, the default value for this SafeDictionary is returned
(Inherited from NullSafeDictionary<TKey, TValue>.)
Public propertyKeys (Inherited from NullSafeDictionary<TKey, TValue>.)
Public propertySyncRoot (Inherited from NullSafeDictionary<TKey, TValue>.)
Public propertyValues (Inherited from NullSafeDictionary<TKey, TValue>.)
Top
Methods
  NameDescription
Public methodAdd (Inherited from NullSafeDictionary<TKey, TValue>.)
Public methodClear (Inherited from NullSafeDictionary<TKey, TValue>.)
Public methodContainsKey (Inherited from NullSafeDictionary<TKey, TValue>.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodStatic memberFlush
Flushes registry mapping for all INI files. is thrown.
Protected methodGetDefaultValue (Overrides NullSafeDictionary<TKey, TValue>.GetDefaultValue(TKey).)
Public methodGetEnumerator (Inherited from NullSafeDictionary<TKey, TValue>.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoad(Stream)
Loads settings from an INI file into this CachedIniFile object using Default text encoding. Existing settings in object is replaced.
Public methodLoad(TextReader)
Loads settings from an INI file into this CachedIniFile object. Existing settings in object is replaced.
Public methodLoad(String)
Loads settings from an INI file into this CachedIniFile object. Existing settings in object is replaced.
Public methodLoad(Stream, Encoding)
Loads settings from an INI file into this CachedIniFile object. Existing settings in object is replaced.
Public methodLoad(String, Encoding)
Loads settings from an INI file into this CachedIniFile object. Existing settings in object is replaced.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodReload
Reloads settings from disk file. This is only supported if this object was created using a constructor that takes a filename or if a Load() method that takes a filename has been called earlier.
Public methodRemove (Inherited from NullSafeDictionary<TKey, TValue>.)
Public methodSave()
Saves current contents of this object to INI file that this object last loaded values from, either through constructor call with filename parameter or by calling Load method with filename parameter.
Public methodSave(String)
Saves current contents of this object to an INI file. If the file already exists, it is overwritten.
Public methodSave(String, Encoding)
Saves current contents of this object to an INI file. If the file already exists, it is overwritten.
Public methodSaveValue(String, String)
Saves a current value from this object to INI file that this object last loaded values from, either through constructor call with filename parameter or by calling Load method with filename parameter. Operation is carried out by calling Win32 API function WritePrivateProfileString. If call fails and exception is thrown.
Public methodSaveValue(String, String, String)
Saves a current value from this object to an INI file by calling Win32 API function WritePrivateProfileString. If call fails and exception is thrown.
Public methodStatic memberSaveValue(String, String, String, String)
Saves a value to an INI file by calling Win32 API function WritePrivateProfileString. If call fails and exception is thrown.
Public methodToString (Overrides Object.ToString().)
Public methodTryGetValue (Inherited from NullSafeDictionary<TKey, TValue>.)
Public methodWriteSectionTo
Public methodWriteTo(Stream)
Public methodWriteTo(TextWriter)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodICollection<KeyValuePair<TKey, TValue>>.Add (Inherited from NullSafeDictionary<TKey, TValue>.)
Explicit interface implementationPrivate methodICollection<KeyValuePair<TKey, TValue>>.Contains (Inherited from NullSafeDictionary<TKey, TValue>.)
Explicit interface implementationPrivate methodICollection<KeyValuePair<TKey, TValue>>.CopyTo (Inherited from NullSafeDictionary<TKey, TValue>.)
Explicit interface implementationPrivate methodIEnumerable<KeyValuePair<TKey, TValue>>.GetEnumerator (Inherited from NullSafeDictionary<TKey, TValue>.)
Explicit interface implementationPrivate methodICollection<KeyValuePair<TKey, TValue>>.Remove (Inherited from NullSafeDictionary<TKey, TValue>.)
Top
See Also