KeyValuePair<TKey,TValue>(TKey, TValue) 建構函式

定義

使用指定的索引鍵和值,初始化 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 關聯的定義。

適用於