This documentation is archived and is not being maintained.
SynchronizedKeyedCollection<K, T> Class
Visual Studio 2010
Provides a thread-safe collection that contains objects of a type specified by a generic parameter and that are grouped by keys.
System.Object
System.Collections.Generic.SynchronizedCollection<T>
System.Collections.Generic.SynchronizedKeyedCollection<K, T>
System.ServiceModel.UriSchemeKeyedCollection
System.Collections.Generic.SynchronizedCollection<T>
System.Collections.Generic.SynchronizedKeyedCollection<K, T>
System.ServiceModel.UriSchemeKeyedCollection
Assembly: System.ServiceModel (in System.ServiceModel.dll)
The SynchronizedKeyedCollection<K, T> type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | SynchronizedKeyedCollection<K, T>() | Initializes a new instance of the SynchronizedKeyedCollection<K, T> class. |
![]() | SynchronizedKeyedCollection<K, T>(Object) | Initializes a new instance of the SynchronizedKeyedCollection<K, T> class with access synchronized by an explicitly specified object. |
![]() | SynchronizedKeyedCollection<K, T>(Object, IEqualityComparer<K>) | Initializes a new instance of the SynchronizedKeyedCollection<K, T> class with access synchronized by an explicitly specified object and with keys compared in a specified way. |
![]() | SynchronizedKeyedCollection<K, T>(Object, IEqualityComparer<K>, Int32) | Initializes a new instance of the SynchronizedKeyedCollection<K, T> class with access synchronized by an explicitly specified object and with keys compared in a specified way. |
| Name | Description | |
|---|---|---|
![]() | Count | Gets the number of elements contained in the thread-safe collection. (Inherited from SynchronizedCollection<T>.) |
![]() | Dictionary | Gets the dictionary associated with the collection. |
![]() | Item[K] | Gets the items with a specified key from the collection. |
![]() | Item[Int32] | Gets an element from the thread-safe collection with a specified index. (Inherited from SynchronizedCollection<T>.) |
![]() | Items | Gets the list of elements contained in the thread-safe collection. (Inherited from SynchronizedCollection<T>.) |
![]() | SyncRoot | Gets the object used to synchronize access to the thread-safe collection. (Inherited from SynchronizedCollection<T>.) |
| Name | Description | |
|---|---|---|
![]() | Add | Adds an item to the thread-safe, read-only collection. (Inherited from SynchronizedCollection<T>.) |
![]() | ChangeItemKey | Changes the key for a specified item in the synchronized collection. |
![]() | Clear | Removes all items from the collection. (Inherited from SynchronizedCollection<T>.) |
![]() | ClearItems | Clears all items from the collection. (Overrides SynchronizedCollection<T>.ClearItems().) |
![]() | Contains(T) | Determines whether the collection contains an element with a specific value. (Inherited from SynchronizedCollection<T>.) |
![]() | Contains(K) | Returns a value that indicates whether the collection contains an item with a specified key. |
![]() | CopyTo | Copies the elements of the collection to a specified array, starting at a particular index. (Inherited from SynchronizedCollection<T>.) |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetEnumerator | Returns an enumerator that iterates through the synchronized collection. (Inherited from SynchronizedCollection<T>.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetKeyForItem | When overridden in a derived class, gets the key for a specified item. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IndexOf | Returns the index of the first occurrence of a value in the collection. (Inherited from SynchronizedCollection<T>.) |
![]() | Insert | Inserts an item into the collection at a specified index. (Inherited from SynchronizedCollection<T>.) |
![]() | InsertItem | Inserts an item into the collection at a specified location. (Overrides SynchronizedCollection<T>.InsertItem(Int32, T).) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Remove(T) | Removes the first occurrence of a specified item from the collection. (Inherited from SynchronizedCollection<T>.) |
![]() | Remove(K) | Removes an item with a specified key from the collection and returns a value that indicates whether an item was removed. |
![]() | RemoveAt | Removes an item at a specified index from the collection. (Inherited from SynchronizedCollection<T>.) |
![]() | RemoveItem | Removes an item at a specified location from the collection. (Overrides SynchronizedCollection<T>.RemoveItem(Int32).) |
![]() | SetItem | Replaces an item at a specified location of the collection with a new item. (Overrides SynchronizedCollection<T>.SetItem(Int32, T).) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ICollection.CopyTo | Copies the elements of the collection to a specified array, starting at a particular index. (Inherited from SynchronizedCollection<T>.) |
![]() ![]() | ICollection<T>.IsReadOnly | Gets a value that indicates whether the collection is read only. (Inherited from SynchronizedCollection<T>.) |
![]() ![]() | ICollection.IsSynchronized | Gets a value that indicates whether the collection is thread safe. (Inherited from SynchronizedCollection<T>.) |
![]() ![]() | ICollection.SyncRoot | Gets the object used to synchronize access to the thread-safe collection. (Inherited from SynchronizedCollection<T>.) |
![]() ![]() | IEnumerable.GetEnumerator | Returns an enumerator that iterates through the synchronized collection. (Inherited from SynchronizedCollection<T>.) |
![]() ![]() | IList.Add | Adds an element to the collection. (Inherited from SynchronizedCollection<T>.) |
![]() ![]() | IList.Contains | Determines whether the collection contains an element with a specific value. (Inherited from SynchronizedCollection<T>.) |
![]() ![]() | IList.IndexOf | Determines the zero-based index of an element in the collection. (Inherited from SynchronizedCollection<T>.) |
![]() ![]() | IList.Insert | Inserts an object into the collection at a specified index. (Inherited from SynchronizedCollection<T>.) |
![]() ![]() | IList.IsFixedSize | Gets a value that indicates whether the collection is fixed in size. (Inherited from SynchronizedCollection<T>.) |
![]() ![]() | IList.IsReadOnly | Gets a value that indicates whether the collection is read only. (Inherited from SynchronizedCollection<T>.) |
![]() ![]() | IList.Item | Gets or sets the item at a specified zero-based index. (Inherited from SynchronizedCollection<T>.) |
![]() ![]() | IList.Remove | Removes the first occurrence of a specified object as an element from the collection. (Inherited from SynchronizedCollection<T>.) |
Inherited by UriSchemeKeyedCollection for use hosting.
Windows 7, 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
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:

