KeyedByTypeCollection<TItem>.GetKeyForItem(TItem) 方法

定义

获取集合中包含的某个项的类型。Gets the type of an item contained in the collection.

protected:
 override Type ^ GetKeyForItem(TItem item);
protected override Type GetKeyForItem (TItem item);
override this.GetKeyForItem : 'Item -> Type
Protected Overrides Function GetKeyForItem (item As TItem) As Type

参数

item
TItem

集合中要检索其类型的项。The item in the collection whose type is to be retrieved.

返回

Type

集合中指定的 item 的类型。The type of the specified item in the collection.

例外

itemnullitem is null.

适用于