ScopeStorageDictionary Class

Definition

Represents a collection of keys and values that are used to store data at different scope levels (local, global, and so on).

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))
Inheritance
ScopeStorageDictionary
Implements

Constructors

ScopeStorageDictionary()

Initializes a new instance of the ScopeStorageDictionary class.

ScopeStorageDictionary(IDictionary<Object,Object>)

Initializes a new instance of the ScopeStorageDictionary class using the specified base scope.

Properties

BackingStore

Gets the dictionary that stores the ScopeStorageDictionary object data.

BaseScope

Gets the base scope for the ScopeStorageDictionary object.

Count

Gets the number of key/value pairs that are in the concatenated ScopeStorageDictionary and BaseScope objects.

IsReadOnly

Gets a value that indicates whether the ScopeStorageDictionary object is read-only.

Item[Object]

Gets or sets the element that is associated with the specified key.

Keys

Gets a List<T> object that contains the keys from the concatenated ScopeStorageDictionary and BaseScope objects.

Values

Gets a List<T> object that contains the values from the concatenated ScopeStorageDictionary and BaseScope objects.

Methods

Add(KeyValuePair<Object,Object>)

Adds a key/value pair to the ScopeStorageDictionary object using the specified generic collection.

Add(Object, Object)

Adds the specified key and specified value to the ScopeStorageDictionary object.

Clear()

Removes all keys and values from the concatenated ScopeStorageDictionary and BaseScope objects.

Contains(KeyValuePair<Object,Object>)

Returns a value that indicates whether the specified key/value pair exists in either the ScopeStorageDictionary object or in the BaseScope object.

ContainsKey(Object)

Returns a value that indicates whether the specified key exists in the ScopeStorageDictionary object or in the BaseScope object.

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

Copies all of the elements in the ScopeStorageDictionary object and the BaseScope object to an Array object, starting at the specified index.

GetEnumerator()

Returns an enumerator that can be used to iterate through concatenated ScopeStorageDictionary and BaseScope objects.

GetItems()

Returns an enumerator that can be used to iterate through the distinct elements of concatenated ScopeStorageDictionary and BaseScope objects.

Remove(KeyValuePair<Object,Object>)

Removes the specified key/value pair from the concatenated ScopeStorageDictionary and BaseScope objects.

Remove(Object)

Removes the value that has the specified key from the concatenated ScopeStorageDictionary and BaseScope objects.

SetValue(Object, Object)

Sets a value using the specified key in the concatenated ScopeStorageDictionary and BaseScope objects.

TryGetValue(Object, Object)

Gets the value that is associated with the specified key from the concatenated ScopeStorageDictionary and BaseScope objects.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator for the concatenated ScopeStorageDictionary and BaseScope objects.

Applies to