SafeDictionary TKey, TValue  MembersKentico 8.1 API Reference
The SafeDictionary TKey, TValue  type exposes the following members.
Constructors

  NameDescription
Public methodSafeDictionary TKey, TValue  
SafeDictionary constructor.
Public methodSafeDictionary TKey, TValue (IEqualityComparer)
SafeDictionary constructor.
Public methodSafeDictionary TKey, TValue (IDictionary, IEqualityComparer)
Constructor.
Public methodSafeDictionary TKey, TValue (SerializationInfo, StreamingContext)
De-serialization constructor.
Back to Top
Methods

  NameDescription
Public methodAdd
Adds the value to the dictionary
(Overrides OnlineHashtable Add(Object, Object).)
Public methodAddMultiple
Adds multiple items with same value to the dictionary
Public methodOnlineClear
Removes all elements from the OnlineHashtable.
(Inherited from OnlineHashtable.)
Public methodOnlineClone
Creates a shallow copy of the OnlineHashtable.
(Inherited from OnlineHashtable.)
Public methodCloneForNewThread
Clones the object for new thread
Public methodContains
Returns true if the dictionary contains the given key
(Overrides OnlineHashtable Contains(Object).)
Public methodContainsKey
Returns true if the dictionary contains the given key
(Overrides OnlineHashtable ContainsKey(Object).)
Public methodContainsValue
Returns true if the dictionary contains the given value
(Overrides OnlineHashtable ContainsValue(Object).)
Public methodOnlineCopyTo
Copies the OnlineHashtable elements to a one-dimensional OnlineArray instance at the specified index.
(Inherited from OnlineHashtable.)
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodOnlineGetEnumerator
Returns an OnlineIDictionaryEnumerator that iterates through the OnlineHashtable.
(Inherited from OnlineHashtable.)
Protected methodOnlineGetHash
Returns the hash code for the specified key.
(Inherited from OnlineHashtable.)
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Protected methodGetInternalValue
Gets the value from the internal dictionary
Public methodGetObjectData
Object serialization.
(Overrides OnlineHashtable GetObjectData(SerializationInfo, StreamingContext).)
Public methodGetRealCount
Gets the real count of the objects in the dictionary
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodOnlineKeyEquals
Compares a specific OnlineObject with a specific key in the OnlineHashtable.
(Inherited from OnlineHashtable.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodOnlineOnDeserialization
Implements the OnlineISerializable interface and raises the deserialization event when the deserialization is complete.
(Inherited from OnlineHashtable.)
Public methodOnlineRemove
Removes the element with the specified key from the OnlineHashtable.
(Inherited from OnlineHashtable.)
Protected methodSetInternalValue
Sets the value in the internal dictionary
Public methodOnlineToString
Returns a string that represents the current object.
(Inherited from OnlineObject.)
Public methodTryGetValue
Tries to get the value, returns true if the retrieval was successful.
Back to Top
Extension Methods

  NameDescription
Public Extension MethodAsIndexable TKey, TValue 
Implicit conversion to indexable type with a specific values
(Defined by DataExtensions.)
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Back to Top
Fields

  NameDescription
Protected fieldmDefaultValue
Default value.
Protected fieldmNullValue
Null value.
Protected fieldmUseWeakReferences
If true, the weak references are used for the items so the memory can be cleared upon request
Back to Top
Properties

  NameDescription
Public propertyAllowNulls
If true, the dictionary allows null values as valid.
Protected propertyOnlinecomparerObsolete.
Gets or sets the OnlineIComparer to use for the OnlineHashtable.
(Inherited from OnlineHashtable.)
Public propertyCopyToNewThread
If true, the dictionary is copied (not cloned) to a new thread
Public propertyOnlineCount
Gets the number of key/value pairs contained in the OnlineHashtable.
(Inherited from OnlineHashtable.)
Public propertyDefaultValue
Default value.
Protected propertyOnlineEqualityComparer
Gets the OnlineIEqualityComparer to use for the OnlineHashtable.
(Inherited from OnlineHashtable.)
Protected propertyOnlinehcpObsolete.
Gets or sets the object that can dispense hash codes.
(Inherited from OnlineHashtable.)
Public propertyIsEmpty
Returns true if the dictionary is empty
Public propertyOnlineIsFixedSize
Gets a value indicating whether the OnlineHashtable has a fixed size.
(Inherited from OnlineHashtable.)
Public propertyOnlineIsReadOnly
Gets a value indicating whether the OnlineHashtable is read-only.
(Inherited from OnlineHashtable.)
Public propertyOnlineIsSynchronized
Gets a value indicating whether access to the OnlineHashtable is synchronized (thread safe).
(Inherited from OnlineHashtable.)
Public propertyOnlineItem Object 
Gets or sets the value associated with the specified key.
(Inherited from OnlineHashtable.)
Public propertyItem TKey 
Items indexer. Gets or sets the value in the dictionary.
Public propertyOnlineKeys
Gets an OnlineICollection containing the keys in the OnlineHashtable.
(Inherited from OnlineHashtable.)
Public propertyNullValue
Null value.
Public propertyOnlineSyncRoot
Gets an object that can be used to synchronize access to the OnlineHashtable.
(Inherited from OnlineHashtable.)
Public propertyTypedKeys
Gets a typed collection of keys in this dictionary
Public propertyTypedValues
Gets a typed collection of values in this dictionary
Public propertyUseWeakReferences
If true, the weak references are used for the items so the memory can be cleared upon request
Public propertyOnlineValues
Gets an OnlineICollection containing the values in the OnlineHashtable.
(Inherited from OnlineHashtable.)
Back to Top
See Also