Version

KeyedObservableCollection<TItem,TKey> Class

Observable collection that supports indexing by key.
Syntax
'Declaration
 
Public Class KeyedObservableCollection
    (Of TItem As Class,
     TKey) 
   Inherits System.Collections.ObjectModel.ObservableCollection(Of TItem)
   Implements IKeyedList(Of TItem,TKey) 
public class KeyedObservableCollection<TItem,TKey> : System.Collections.ObjectModel.ObservableCollection<TItem>, IKeyedList<TItem,TKey>  
where TItem: class
Type Parameters
TItem
The type of item that the collection will contain
TKey
The type of object that is used as the key
Remarks
Note: One or items may have a null key, assuming the type TKey allows it, but when a key is provided only a single item in the collection may have that key.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also