KeyValuePair<TKey,TValue>(TKey, TValue) 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化結構的新實例 KeyValuePair<TKey,TValue> ,使用指定的鍵與值。
public:
KeyValuePair(TKey key, TValue value);
public KeyValuePair(TKey key, TValue value);
new System.Collections.Generic.KeyValuePair<'Key, 'Value> : 'Key * 'Value -> System.Collections.Generic.KeyValuePair<'Key, 'Value>
Public Sub New (key As TKey, value As TValue)
參數
- key
- TKey
每個鍵值對中定義的物件。
- value
- TValue
與 key相關的定義。