KeyValuePair<TKey,TValue>(TKey, TValue) KeyValuePair<TKey,TValue>(TKey, TValue) KeyValuePair<TKey,TValue>(TKey, TValue) KeyValuePair<TKey,TValue>(TKey, TValue) Constructor

Definition

Initializes a new instance of the KeyValuePair<TKey,TValue> structure with the specified key and value.

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)

Parameters

key
TKey TKey TKey TKey

The object defined in each key/value pair.

value
TValue TValue TValue TValue

The definition associated with key.

Applies to