Click or drag to resize
StringSafeDictionaryTValue Class
Safe dictionary indexed by string
Inheritance Hierarchy
SystemObject
  System.CollectionsHashtable
    CMS.BaseSafeDictionaryString, TValue
      CMS.BaseStringSafeDictionaryTValue
        CMS.BaseMultiKeyDictionaryValueType
        CMS.UIControlsUniGridTransformations

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 11.0.0
Syntax
C#
[SerializableAttribute]
public class StringSafeDictionary<TValue> : SafeDictionary<string, TValue>

Type Parameters

TValue

The StringSafeDictionaryTValue type exposes the following members.

Constructors
Fields
Properties
  NameDescription
Public propertyAllowNulls
If true, the dictionary allows null values as valid.
(Inherited from SafeDictionaryTKey, TValue.)
Public propertyCopyToNewThread
If true, the dictionary is copied (not cloned) to a new thread
(Inherited from SafeDictionaryTKey, TValue.)
Public propertyDefaultValue
Default value.
(Inherited from SafeDictionaryTKey, TValue.)
Public propertyIsEmpty
Returns true if the dictionary is empty
(Inherited from SafeDictionaryTKey, TValue.)
Public propertyIsSynchronized
Returns true if dictionary is synchronized.
(Inherited from SafeDictionaryTKey, TValue.)
Public propertyItemObject
Items indexer. Gets or sets the value in the dictionary.
(Inherited from SafeDictionaryTKey, TValue.)
Public propertyItemTKey
Items indexer. Gets or sets the value in the dictionary.
(Inherited from SafeDictionaryTKey, TValue.)
Public propertyKeys
Gets an Collection containing the keys in the System.Collections.Hashtable.
(Inherited from SafeDictionaryTKey, TValue.)
Public propertyNullValue
Null value.
(Inherited from SafeDictionaryTKey, TValue.)
Public propertyCode exampleSyncRoot (Inherited from SafeDictionaryTKey, TValue.)
Public propertyTypedKeys
Gets a typed collection of keys in this dictionary
(Inherited from SafeDictionaryTKey, TValue.)
Public propertyTypedValues
Gets a typed collection of values in this dictionary
(Inherited from SafeDictionaryTKey, TValue.)
Public propertyCode exampleUseWeakReferences
If true, the weak references are used for the items so the memory can be cleared upon request. The property can be set only when the dictionary is empty. To ensure thread-safety, you have to perform the check for emptiness and property assignment in a critical section (use SyncRoot for that purpose).
(Inherited from SafeDictionaryTKey, TValue.)
Public propertyValues
Gets a Collection containing the values in the System.Collections.Hashtable.
(Inherited from SafeDictionaryTKey, TValue.)
Top
Methods
  NameDescription
Public methodCode exampleAdd
Adds the value to the dictionary if it does not exist. Updates existing, if it does exist.
(Inherited from SafeDictionaryTKey, TValue.)
Public methodCode exampleAddMultiple
Adds multiple items with same value to the dictionary
(Inherited from SafeDictionaryTKey, TValue.)
Public methodClear
Removes all elements from the System.Collections.Hashtable.
(Inherited from SafeDictionaryTKey, TValue.)
Public methodClone
Clones the dictionary
(Overrides SafeDictionaryTKey, TValueClone.)
Public methodCloneForNewThread
Clones the object for new thread
(Inherited from SafeDictionaryTKey, TValue.)
Public methodContains
Returns true if the dictionary contains the given key
(Inherited from SafeDictionaryTKey, TValue.)
Public methodContainsKey
Returns true if the dictionary contains the given key
(Inherited from SafeDictionaryTKey, TValue.)
Public methodContainsValue
Returns true if the dictionary contains the given value
(Inherited from SafeDictionaryTKey, TValue.)
Protected methodCopyPropertiesTo
Copies the dictionary properties to the target dictionary
(Inherited from SafeDictionaryTKey, TValue.)
Public methodCode exampleCopyTo
Copies the System.Collections.Hashtable elements to a one-dimensional System.Array instance at the specified index.
(Inherited from SafeDictionaryTKey, TValue.)
Protected methodGetInternalValue
Gets the value from the internal dictionary
(Inherited from SafeDictionaryTKey, TValue.)
Public methodGetObjectData
Object serialization.
(Inherited from SafeDictionaryTKey, TValue.)
Public methodCode exampleGetRealCount
Gets the real count of the objects in the dictionary.
(Inherited from SafeDictionaryTKey, TValue.)
Public methodRemove
Removes the element with the specified key from the System.Collections.Hashtable.
(Inherited from SafeDictionaryTKey, TValue.)
Protected methodSetInternalValue
Sets the value in the internal dictionary
(Inherited from SafeDictionaryTKey, TValue.)
Public methodTryGetValue
Tries to get the value, returns true if the retrieval was successful.
(Inherited from SafeDictionaryTKey, TValue.)
Top
See Also