This topic has not yet been rated - Rate this topic

SettingsAttributeDictionary Class

Represents a collection of key/value pairs used to describe a configuration object as well as a SettingsProperty object.

System.Object
  System.Collections.Hashtable
    System.Configuration.SettingsAttributeDictionary

Namespace:  System.Configuration
Assembly:  System (in System.dll)
[SerializableAttribute]
public class SettingsAttributeDictionary : Hashtable

The SettingsAttributeDictionary type exposes the following members.

  Name Description
Public method SettingsAttributeDictionary() Initializes a new instance of the SettingsAttributeDictionary class.
Public method SettingsAttributeDictionary(SettingsAttributeDictionary) Initializes a new instance of the SettingsAttributeDictionary class.
Top
  Name Description
Protected property comparer Obsolete. Gets or sets the IComparer to use for the Hashtable. (Inherited from Hashtable.)
Public property Count Gets the number of key/value pairs contained in the Hashtable. (Inherited from Hashtable.)
Protected property EqualityComparer Gets the IEqualityComparer to use for the Hashtable. (Inherited from Hashtable.)
Protected property hcp Obsolete. Gets or sets the object that can dispense hash codes. (Inherited from Hashtable.)
Public property IsFixedSize Gets a value indicating whether the Hashtable has a fixed size. (Inherited from Hashtable.)
Public property IsReadOnly Gets a value indicating whether the Hashtable is read-only. (Inherited from Hashtable.)
Public property IsSynchronized Gets a value indicating whether access to the Hashtable is synchronized (thread safe). (Inherited from Hashtable.)
Public property Item Gets or sets the value associated with the specified key. (Inherited from Hashtable.)
Public property Keys Gets an ICollection containing the keys in the Hashtable. (Inherited from Hashtable.)
Public property SyncRoot Gets an object that can be used to synchronize access to the Hashtable. (Inherited from Hashtable.)
Public property Values Gets an ICollection containing the values in the Hashtable. (Inherited from Hashtable.)
Top
  Name Description
Public method Add Adds an element with the specified key and value into the Hashtable. (Inherited from Hashtable.)
Public method Clear Removes all elements from the Hashtable. (Inherited from Hashtable.)
Public method Clone Creates a shallow copy of the Hashtable. (Inherited from Hashtable.)
Public method Contains Determines whether the Hashtable contains a specific key. (Inherited from Hashtable.)
Public method ContainsKey Determines whether the Hashtable contains a specific key. (Inherited from Hashtable.)
Public method ContainsValue Determines whether the Hashtable contains a specific value. (Inherited from Hashtable.)
Public method CopyTo Copies the Hashtable elements to a one-dimensional Array instance at the specified index. (Inherited from Hashtable.)
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEnumerator Returns an IDictionaryEnumerator that iterates through the Hashtable. (Inherited from Hashtable.)
Protected method GetHash Returns the hash code for the specified key. (Inherited from Hashtable.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetObjectData Implements the ISerializable interface and returns the data needed to serialize the Hashtable. (Inherited from Hashtable.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method KeyEquals Compares a specific Object with a specific key in the Hashtable. (Inherited from Hashtable.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method OnDeserialization Implements the ISerializable interface and raises the deserialization event when the deserialization is complete. (Inherited from Hashtable.)
Public method Remove Removes the element with the specified key from the Hashtable. (Inherited from Hashtable.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
  Name Description
Explicit interface implemetation Private method IEnumerable.GetEnumerator Returns an enumerator that iterates through a collection. (Inherited from Hashtable.)
Top

The SettingsAttributeDictionary object inherits from the Hashtable object. The SettingsAttributeDictionary object is used to describe a configuration object, such as the SettingsProperty object.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ