Share via


ScopeStorageDictionary Class

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

Inheritance Hierarchy

System.Object
  System.Web.WebPages.Scope.ScopeStorageDictionary

Namespace:  System.Web.WebPages.Scope
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

Syntax

'Declaration
Public Class ScopeStorageDictionary _
    Implements IDictionary(Of Object, Object),  _
    ICollection(Of KeyValuePair(Of Object, Object)), IEnumerable(Of KeyValuePair(Of Object, Object)),  _
    IEnumerable
'Usage
Dim instance As ScopeStorageDictionary
public class ScopeStorageDictionary : IDictionary<Object, Object>, 
    ICollection<KeyValuePair<Object, Object>>, IEnumerable<KeyValuePair<Object, Object>>, 
    IEnumerable
public ref class ScopeStorageDictionary : IDictionary<Object^, Object^>, 
    ICollection<KeyValuePair<Object^, Object^>>, IEnumerable<KeyValuePair<Object^, Object^>>, 
    IEnumerable
type ScopeStorageDictionary =  
    class 
        interface IDictionary<Object, Object>
        interface ICollection<KeyValuePair<Object, Object>>
        interface IEnumerable<KeyValuePair<Object, Object>>
        interface IEnumerable 
    end
public class ScopeStorageDictionary implements IDictionary<Object, Object>, ICollection<KeyValuePair<Object, Object>>, IEnumerable<KeyValuePair<Object, Object>>, IEnumerable

The ScopeStorageDictionary type exposes the following members.

Constructors

  Name Description
Public method ScopeStorageDictionary() Initializes a new instance of the ScopeStorageDictionary class.
Public method ScopeStorageDictionary(IDictionary<Object, Object>) Initializes a new instance of the ScopeStorageDictionary class using the specified base scope.

Top

Properties

  Name Description
Protected property BackingStore Gets the dictionary that stores the ScopeStorageDictionary object data.
Protected property BaseScope Gets the base scope for the ScopeStorageDictionary object.
Public property Count Gets the number of key/value pairs that are in the concatenated ScopeStorageDictionary and BaseScope objects.
Public property IsReadOnly Gets a value that indicates whether the ScopeStorageDictionary object is read-only.
Public property Item Gets or sets the element that is associated with the specified key.
Public property Keys Gets a List<T> object that contains the keys from the concatenated ScopeStorageDictionary and BaseScope objects.
Public property Values Gets a List<T> object that contains the values from the concatenated ScopeStorageDictionary and BaseScope objects.

Top

Methods

  Name Description
Public method Add(KeyValuePair<Object, Object>) Adds a key/value pair to the ScopeStorageDictionary object using the specified generic collection.
Public method Add(Object, Object) Adds the specified key and specified value to the ScopeStorageDictionary object.
Public method Clear Removes all keys and values from the concatenated ScopeStorageDictionary and BaseScope objects.
Public method Contains Returns a value that indicates whether the specified key/value pair exists in either the ScopeStorageDictionary object or in the BaseScope object.
Public method ContainsKey Returns a value that indicates whether the specified key exists in the ScopeStorageDictionary object or in the BaseScope object.
Public method CopyTo Copies all of the elements in the ScopeStorageDictionary object and the BaseScope object to an Array object, starting at the specified index.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator Returns an enumerator that can be used to iterate through concatenated ScopeStorageDictionary and BaseScope objects.
Public method GetHashCode (Inherited from Object.)
Protected method GetItems Returns an enumerator that can be used to iterate through the distinct elements of concatenated ScopeStorageDictionary and BaseScope objects.
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove(KeyValuePair<Object, Object>) Removes the specified key/value pair from the concatenated ScopeStorageDictionary and BaseScope objects.
Public method Remove(Object) Removes the value that has the specified key from the concatenated ScopeStorageDictionary and BaseScope objects.
Public method SetValue Sets a value using the specified key in the concatenated ScopeStorageDictionary and BaseScope objects.
Public method ToString (Inherited from Object.)
Public method TryGetValue Gets the value that is associated with the specified key from the concatenated ScopeStorageDictionary and BaseScope objects.

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator Returns an enumerator for the concatenated ScopeStorageDictionary and BaseScope objects.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.WebPages.Scope Namespace