SettingsAttributeDictionary 类
定义
表示用于描述配置对象以及 SettingsProperty 对象的键/值对集合。Represents a collection of key/value pairs used to describe a configuration object as well as a SettingsProperty object.
public ref class SettingsAttributeDictionary : System::Collections::Hashtable
public class SettingsAttributeDictionary : System.Collections.Hashtable
[System.Serializable]
public class SettingsAttributeDictionary : System.Collections.Hashtable
type SettingsAttributeDictionary = class
inherit Hashtable
[<System.Serializable>]
type SettingsAttributeDictionary = class
inherit Hashtable
Public Class SettingsAttributeDictionary
Inherits Hashtable
- 继承
- 属性
注解
SettingsAttributeDictionary对象从 Hashtable 对象继承。The SettingsAttributeDictionary object inherits from the Hashtable object. SettingsAttributeDictionary对象用于描述配置对象,如 SettingsProperty 对象。The SettingsAttributeDictionary object is used to describe a configuration object, such as the SettingsProperty object.
构造函数
| SettingsAttributeDictionary() |
初始化 SettingsAttributeDictionary 类的新实例。Initializes a new instance of the SettingsAttributeDictionary class. |
| SettingsAttributeDictionary(SettingsAttributeDictionary) |
初始化 SettingsAttributeDictionary 类的新实例。Initializes a new instance of the SettingsAttributeDictionary class. |
属性
| comparer |
已过时。
获取或设置要用于 IComparer 的 Hashtable。Gets or sets the IComparer to use for the Hashtable. (继承自 Hashtable) |
| Count |
获取包含在 Hashtable 中的键/值对的数目。Gets the number of key/value pairs contained in the Hashtable. (继承自 Hashtable) |
| EqualityComparer |
获取要用于 IEqualityComparer 的 Hashtable。Gets the IEqualityComparer to use for the Hashtable. (继承自 Hashtable) |
| hcp |
已过时。
获取或设置可分配哈希代码的对象。Gets or sets the object that can dispense hash codes. (继承自 Hashtable) |
| IsFixedSize |
获取一个值,该值指示 Hashtable 是否具有固定大小。Gets a value indicating whether the Hashtable has a fixed size. (继承自 Hashtable) |
| IsReadOnly |
获取一个值,该值指示 Hashtable 是否为只读。Gets a value indicating whether the Hashtable is read-only. (继承自 Hashtable) |
| IsSynchronized |
获取一个值,该值指示是否同步对 Hashtable 的访问(线程安全)。Gets a value indicating whether access to the Hashtable is synchronized (thread safe). (继承自 Hashtable) |
| Item[Object] |
获取或设置与指定的键关联的值。Gets or sets the value associated with the specified key. (继承自 Hashtable) |
| Keys |
获取包含 ICollection 中的键的 Hashtable。Gets an ICollection containing the keys in the Hashtable. (继承自 Hashtable) |
| SyncRoot |
获取可用于同步对 Hashtable 的访问的对象。Gets an object that can be used to synchronize access to the Hashtable. (继承自 Hashtable) |
| Values |
获取一个 ICollection,它包含 Hashtable 中的值。Gets an ICollection containing the values in the Hashtable. (继承自 Hashtable) |
方法
| Add(Object, Object) |
将带有指定键和值的元素添加到 Hashtable 中。Adds an element with the specified key and value into the Hashtable. (继承自 Hashtable) |
| Clear() |
从 Hashtable 中移除所有元素。Removes all elements from the Hashtable. (继承自 Hashtable) |
| Clone() |
创建 Hashtable 的浅表副本。Creates a shallow copy of the Hashtable. (继承自 Hashtable) |
| Contains(Object) |
确定 Hashtable 是否包含特定键。Determines whether the Hashtable contains a specific key. (继承自 Hashtable) |
| ContainsKey(Object) |
确定 Hashtable 是否包含特定键。Determines whether the Hashtable contains a specific key. (继承自 Hashtable) |
| ContainsValue(Object) |
确定 Hashtable 是否包含特定值。Determines whether the Hashtable contains a specific value. (继承自 Hashtable) |
| CopyTo(Array, Int32) |
将 Hashtable 元素复制到一维 Array 实例中的指定索引位置。Copies the Hashtable elements to a one-dimensional Array instance at the specified index. (继承自 Hashtable) |
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetEnumerator() |
返回循环访问 IDictionaryEnumerator 的 Hashtable。Returns an IDictionaryEnumerator that iterates through the Hashtable. (继承自 Hashtable) |
| GetHash(Object) |
返回指定键的哈希代码。Returns the hash code for the specified key. (继承自 Hashtable) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetObjectData(SerializationInfo, StreamingContext) |
实现 ISerializable 接口,并返回序列化 Hashtable 所需的数据。Implements the ISerializable interface and returns the data needed to serialize the Hashtable. (继承自 Hashtable) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| KeyEquals(Object, Object) |
将特定 Object 与 Hashtable 中的特定键进行比较。Compares a specific Object with a specific key in the Hashtable. (继承自 Hashtable) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| OnDeserialization(Object) |
实现 ISerializable 接口,并在完成反序列化之后引发反序列化事件。Implements the ISerializable interface and raises the deserialization event when the deserialization is complete. (继承自 Hashtable) |
| Remove(Object) |
从 Hashtable 中移除带有指定键的元素。Removes the element with the specified key from the Hashtable. (继承自 Hashtable) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |
显式接口实现
| IEnumerable.GetEnumerator() |
返回循环访问集合的枚举数。Returns an enumerator that iterates through a collection. (继承自 Hashtable) |
扩展方法
| Cast<TResult>(IEnumerable) |
将 IEnumerable 的元素强制转换为指定的类型。Casts the elements of an IEnumerable to the specified type. |
| OfType<TResult>(IEnumerable) |
根据指定类型筛选 IEnumerable 的元素。Filters the elements of an IEnumerable based on a specified type. |
| AsParallel(IEnumerable) |
启用查询的并行化。Enables parallelization of a query. |
| AsQueryable(IEnumerable) |
将 IEnumerable 转换为 IQueryable。Converts an IEnumerable to an IQueryable. |