[This is preliminary documentation and is subject to change.]

The DictionaryWithEvents<(Of <(<'TKey, TValue>)>)> type exposes the following members.

Constructors

Methods

  NameDescription
Public methodAdd
Protected methodAddAllItemHandlers
Adds ahndlers to all items that as of type IReportsChange
Protected methodAddItemHandler
Adds handler to item at specified index if the item is IReportsChange
Public methodClear
Public methodContainsKey
Determines whether the IDictionary<(Of <(<'TKey, TValue>)>)> contains an element with the specified key.
Public methodGetEnumerator
Returns an enumerator that iterates through the DictionaryWithEvents<(Of <(<'TKey, TValue>)>)>.
Public methodGetValuesEnumerator
Returns an IEnumerator<(Of <(<'T>)>)> to enumerate values in dictionary
Public methodKeyOf
Gets key of firts occurence of given item
Protected methodLock
Sets the Locked to True
Protected methodOnAdded
Raises Added event
Protected methodOnAdding
Raises Adding event
Protected methodOnCleared
Raises Cleared event
Protected methodOnClearing
Raises Clearing event
Protected methodOnCollectionChanged(DictionaryWithEvents<(Of <<'(TKey, TValue>)>>)..::..DictionaryChangedEventArgs)
Raises the CollectionChanged event.
Protected methodOnCollectionChanged(EventArgs, CollectionChangeAction, TKey, TValue, TValue)
Raises the CollectionChanged event via calling OnChanged(ListChangedEventArgs)
Protected methodOnChanged
Raises the Changed event
Protected methodOnItemChanged
Raises ItemChanged event
Protected methodOnItemChanging
Raises ItemChanging event
Protected methodOnItemValueChanged
Raises the ItemValueChanged event and handles the Changed event for items
Protected methodOnRemoved
Raises Removed event
Protected methodOnRemoving
Raises Removing event
Public methodRemove
Removes item with given key from the DictionaryWithEvents<(Of <(<'TKey, TValue>)>)>.
Protected methodRemoveAllItemHandlers
Removes handlers from all item that are of type IReportsChange
Protected methodRemoveItemHandler
Removes handler from item at specified index if the item is IReportsChange
Public methodTryGetValue
Gets the value associated with the specified key.
Protected methodUnlock
Sets the Locked to False

Extension Methods

  NameDescription
Public Extension MethodIndexOf<(Of <<'(TValue>)>>)
Gets index of first occurence of given item in given collection
(Defined by EnumerableT.)
Public Extension MethodLast<(Of <<'(TValue>)>>)
Gets last item in collection
(Defined by CollectionTools.)
Public Extension MethodUnionAll<(Of <<'(TValue>)>>)(array<IEnumerable<(Of <<'(TValue>)>>)>[]()[][])Overloaded.
Creates union of given collection with other given collections
(Defined by EnumerableT.)
Public Extension MethodUnionAll<(Of <<'(TValue>)>>)(IEnumerable<(Of <<'(IEnumerable<(Of <<'(TValue>)>>)>)>>))Overloaded.
Creates union of given collection with other given collections
(Defined by EnumerableT.)

Properties

  NameDescription
Public propertyAddingReadOnly
Determines ReadOnly property value for the Adding and ItemChanging events
Public propertyAllowAddCancelableEventsHandlers
Determines if it is allowed to add handlers for events that supports cancellation
Public propertyCancelError
Gets value indicating if an OperationCanceledException is thrown when item operation is canceled in event handler.
Public propertyCount
Gets the number of elements contained in the ICollection.
Protected propertyInternalDict
Gives access to underlying Dictionary<(Of <(<'TKey, TValue>)>)>
Public propertyItem
Gets or sets the element with the specified key.
Public propertyKeys
Public propertyLocked
Determines if the DictionaryWithEvents<(Of <(<'TKey, TValue>)>)> isn locked (being locked prevents if from being edited)
Public propertySyncRoot
Gets an object that can be used to synchronize access to the ICollection.
Public propertyValues

Events

  NameDescription
Public eventAdded
Raised after an item is added to the list. Raised by the Add(TKey, TValue) method
Public eventAdding
Raised before an item is added to the list. Raised by the Add(TKey, TValue) methods
Public eventCleared
Raised after the list is cleared. Raised by Clear()()()() method.
Public eventClearing
Raised before the list is cleared. Raised by Clear()()()() method.
Public eventCollectionChanged
Raised when this DictionaryWithEvents<(Of <(<'TKey, TValue>)>)> collection changes.
Public eventChanged
Raised when value of member changes
Public eventItemChanged
Raised after item in the list is changed. Raised by setter of Item[([( TKey])]) property.
Public eventItemChanging
Raised before an item is changed. Raised by setter of Item[([( TKey])]) property.
Public eventItemValueChanged
Raised when any of items that is of type IReportsChange raises Changed event
Public eventRemoved
Raised after the list is cleared. Raised by Remove(TKey) method.
Public eventRemoving
Raised before item is removed from the list. Raised by Remove(TKey) method.

Explicit Interface Implementations

See Also