Provides a read-only adapter on an existing Generic ReadOnlyKeyedCollection. Namespace: Microsoft.ComponentStudio.ComponentPlatformInterface
Assembly: Microsoft.ComponentStudio.ComponentPlatformInterface (in microsoft.componentstudio.componentplatforminterface.dll)

Usage

Visual Basic
Public Class SomeType1
End Class
Public Class SomeType2
End Class
Dim writableCollection As KeyedCollection
Dim readOnlyKeyedCollection1 As New ReadOnlyKeyedCollection(Of SomeType1, SomeType2)(writableCollection)

Syntax

Visual Basic
Public Class ReadOnlyKeyedCollection(Of TKey, TValue)
		Implements IKeyedCollection(Of TKey, TValue), ICollection, IList(Of TValue), ICollection(Of TValue), IEnumerable(Of TValue), IEnumerable
C#
public class ReadOnlyKeyedCollection<TKey, TValue> : IKeyedCollection<TKey, TValue>, ICollection, IList<TValue>, ICollection<TValue>, IEnumerable<TValue>, IEnumerable
C++
generic<typename TKey, typename TValue>
public ref class ReadOnlyKeyedCollection : IKeyedCollection<TKey, TValue>, ICollection, IList<TValue>, ICollection<TValue>, IEnumerable<TValue>, IEnumerable
J#
public class ReadOnlyKeyedCollection<TKey, TValue> implements IKeyedCollection<TKey, TValue>, ICollection, IList<TValue>, ICollection<TValue>, IEnumerable<TValue>, IEnumerable
JScript
JScript does not support Generics.

Inheritance Hierarchy

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Vista, and Windows 2000

Target Platforms

See Also