更新 : 2007 年 11 月
キーとして機能する型が項目であるコレクションを提供します。
名前空間 :
System.Collections.Generic
アセンブリ :
System.ServiceModel (System.ServiceModel.dll 内)
Public Class KeyedByTypeCollection(Of TItem) _
Inherits KeyedCollection(Of Type, TItem)
Dim instance As KeyedByTypeCollection(Of TItem)
public class KeyedByTypeCollection<TItem> : KeyedCollection<Type, TItem>
generic<typename TItem>
public ref class KeyedByTypeCollection : public KeyedCollection<Type^, TItem>
J# では、ジェネリック API は使用できますが、新規に宣言することはできません。
JScript では、ジェネリックな型またはメソッドは使用できません。
型パラメータ
- TItem
コレクションに対するキーとしても機能する、コレクションに含まれる項目の型。
型はキーであり、各キーは一意でなければならないので、コレクションでは、型ごとに 1 つのオブジェクトしか許されません。ただし、型の異なるオブジェクトは検索できます。
System..::.Object
System.Collections.ObjectModel..::.Collection<(Of <(TItem>)>)
System.Collections.ObjectModel..::.KeyedCollection<(Of <(Type, TItem>)>)
System.Collections.Generic..::.KeyedByTypeCollection<(Of <(TItem>)>)
System.ServiceModel.Channels..::.BindingParameterCollection
この型のすべてのパブリック static (Visual Basic では Shared) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
Windows Vista, Windows XP SP2, Windows Server 2003, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
.NET Framework および .NET Compact Framework では、各プラットフォームのすべてのバージョンはサポートしていません。サポートされているバージョンについては、「.NET Framework システム要件」を参照してください。
.NET Framework
サポート対象 : 3.5、3.0
.NET Compact Framework
サポート対象 : 3.5
参照