SettingsCollectionBase Abstract Class

Subclass of IDictionary. The base class for a collection of Name/Value pairs for storing settings.

Methods

Type Signature
Constructor SettingsCollectionBase()
Initializes a new instance of the SettingsCollectionBase class that is empty.
Constructor SettingsCollectionBase(IDictionary<string, SettingValue> dictionary)
Initializes a new instance of the SettingsCollectionBase class that contains elements copied from the specified IDictionary.
protected Constructor SettingsCollectionBase(SerializationInfo info, StreamingContext context)
Initializes a new instance of the SettingsCollectionBase class with serialized data.
void Add(string key, SettingValue value)
Adds the specified key and value to the SettingsCollectionBase.
void Clear()
Removes all keys and values from the SettingsCollectionBase.
bool ContainsKey(string key)
Determines whether the SettingsCollectionBase contains the specified key.
bool ContainsValue(SettingValue value)
Determines whether the SettingsCollectionBase contains a specific value.
IEnumerator GetEnumerator()
Returns an enumerator that iterates through the SettingsCollectionBase.
bool Remove(string key)
Removes the value with the specified key from the SettingsCollectionBase.
bool TryGetValue(string key, out SettingValue value)
Gets the value associated with the specified key.
protected virtual bool ClearEntries()
Removes all keys and values from the SettingsCollectionBase.
protected int GetIndexAndEntryForKey(string key, out DictionaryEntry entry)
Gets the index and the entry for a given key.
protected virtual void OnCollectionChanged(NotifyCollectionChangedEventArgs args)
Raises the CollectionChanged event.
protected virtual void OnPropertyChanged(string name)
Raises the PropertyChanged event.
protected virtual bool RemoveEntry(string key)
Removes the value with the specified key from the SettingsCollectionBase.
protected virtual bool SetEntry(string key, SettingValue value)
Sets the specified key and value to the SettingsCollectionBase.
virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Implements the System.Runtime.Serialization.ISerializable interface and returns the data needed to serialize the SettingsCollectionBase instance.
virtual void OnDeserialization(object sender)
Runs when the entire object graph has been deserialized.

Properties

Type Signature
IEqualityComparer<string> Comparer
Gets the IEqualityComparer that is used to determine equality of keys for the dictionary.
int Count
Gets the number of key/value pairs contained in the SettingsCollectionBase.
Dictionary<string, SettingValue>.KeyCollection Keys
Gets a collection containing the keys in the SettingsCollectionBase.
SettingValue this[string key]
Gets or sets the value associated with the specified key.
Dictionary<string, SettingValue>.ValueCollection Values
Gets a collection containing the values in the SettingsCollectionBase.
protected virtual event NotifyCollectionChangedEventHandler CollectionChanged
Occurs when the collection changes.
protected virtual event PropertyChangedEventHandler PropertyChanged
Occurs when a property value changes.
protected KeyedDictionaryEntryCollection _keyedEntryCollection
The backing store for this instance of the SettingsCollectionBase class.