SynchronizedKeyedCollection<K,T>.GetKeyForItem(T) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當在衍生類別中被覆寫時,會取得指定項目的金鑰。
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。