KeyedByTypeCollection<TItem> 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 KeyedByTypeCollection<TItem> 类的新实例。
重载
KeyedByTypeCollection<TItem>() |
初始化 KeyedByTypeCollection<TItem> 类的新实例。 |
KeyedByTypeCollection<TItem>(IEnumerable<TItem>) |
根据指定的对象枚举初始化 KeyedByTypeCollection<TItem> 类的新实例。 |
KeyedByTypeCollection<TItem>()
初始化 KeyedByTypeCollection<TItem> 类的新实例。
public:
KeyedByTypeCollection();
public KeyedByTypeCollection ();
Public Sub New ()
适用于
KeyedByTypeCollection<TItem>(IEnumerable<TItem>)
根据指定的对象枚举初始化 KeyedByTypeCollection<TItem> 类的新实例。
public:
KeyedByTypeCollection(System::Collections::Generic::IEnumerable<TItem> ^ items);
public KeyedByTypeCollection (System.Collections.Generic.IEnumerable<TItem> items);
new System.Collections.Generic.KeyedByTypeCollection<'Item> : seq<'Item> -> System.Collections.Generic.KeyedByTypeCollection<'Item>
Public Sub New (items As IEnumerable(Of TItem))
参数
- items
- IEnumerable<TItem>
泛型类型 IEnumerable<T> 的 Object,用于初始化集合。
例外
items
为 null
。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将推出:在整个 2024 年,我们将逐步取消以“GitHub 问题”作为内容的反馈机制,并将其替换为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈