語言

SynchronizedKeyedCollection<K,T>.GetKeyForItem(T) 方法

定義

當在衍生類別中被覆寫時,會取得指定項目的金鑰。

protected:
 abstract K GetKeyForItem(T item);
protected abstract K GetKeyForItem(T item);
abstract member GetKeyForItem : 'T -> 'K
Protected MustOverride Function GetKeyForItem (item As T) As K

參數

item
T

被檢索的 T 型項目。

傳回

K

對於指定 item 型態 T 的鍵值為 K。

適用於