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. |