ScopeStorageDictionary 類別

定義

代表索引鍵和值的集合,可用來在不同的領域層級 (本機、全域等) 儲存資料。

public class ScopeStorageDictionary : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<object,object>>, System.Collections.Generic.IDictionary<object,object>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<object,object>>
type ScopeStorageDictionary = class
    interface IDictionary<obj, obj>
    interface ICollection<KeyValuePair<obj, obj>>
    interface seq<KeyValuePair<obj, obj>>
    interface IEnumerable
Public Class ScopeStorageDictionary
Implements ICollection(Of KeyValuePair(Of Object, Object)), IDictionary(Of Object, Object), IEnumerable(Of KeyValuePair(Of Object, Object))
繼承
ScopeStorageDictionary
實作

建構函式

ScopeStorageDictionary()

初始化 ScopeStorageDictionary 類別的新執行個體。

ScopeStorageDictionary(IDictionary<Object,Object>)

使用指定的基底範圍, ScopeStorageDictionary 初始化 類別的新實例。

屬性

BackingStore

取得儲存 ScopeStorageDictionary 物件資料的字典。

BaseScope

取得 物件的基底範圍 ScopeStorageDictionary

Count

取得串連 ScopeStorageDictionaryBaseScope 物件中的索引鍵/值組數目。

IsReadOnly

取得值,這個值表示 ScopeStorageDictionary 物件是否為唯讀。

Item[Object]

取得或設定與指定索引鍵相關聯的元素。

Keys

List<T>取得 物件,其中包含串連 ScopeStorageDictionaryBaseScope 物件的索引鍵。

Values

List<T>取得 物件,其中包含串連 ScopeStorageDictionaryBaseScope 物件中的值。

方法

Add(KeyValuePair<Object,Object>)

使用指定的泛型集合, ScopeStorageDictionary 將索引鍵/值組新增至 物件。

Add(Object, Object)

將指定的索引鍵和指定的值新增至 ScopeStorageDictionary 物件。

Clear()

從串 ScopeStorageDictionary 連和 物件中移除所有索引鍵和 BaseScope 值。

Contains(KeyValuePair<Object,Object>)

傳回值,指出指定的索引鍵/值組是否存在於 ScopeStorageDictionary 物件或 物件中 BaseScope

ContainsKey(Object)

傳回值,這個值表示指定的索引鍵是否存在於 ScopeStorageDictionary 物件或 物件中 BaseScope

CopyTo(KeyValuePair<Object,Object>[], Int32)

從指定的索引開始,將 物件和 物件中的所有 ScopeStorageDictionary 專案複製到 物件 ArrayBaseScope

GetEnumerator()

傳回列舉值,可用來逐一查看串連 ScopeStorageDictionaryBaseScope 物件。

GetItems()

傳回列舉值,可用來逐一查看串連 ScopeStorageDictionaryBaseScope 物件的相異專案。

Remove(KeyValuePair<Object,Object>)

從串連 ScopeStorageDictionaryBaseScope 物件中移除指定的索引鍵/值組。

Remove(Object)

從串連 ScopeStorageDictionaryBaseScope 物件中移除具有指定索引鍵的值。

SetValue(Object, Object)

使用串連 ScopeStorageDictionaryBaseScope 物件中的指定索引鍵來設定值。

TryGetValue(Object, Object)

從串連 ScopeStorageDictionaryBaseScope 物件取得與指定索引鍵相關聯的值。

明確介面實作

IEnumerable.GetEnumerator()

傳回串連 ScopeStorageDictionaryBaseScope 物件的列舉值。

適用於