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

Definition

Initialisiert eine neue Instanz der KeyValuePair<TKey,TValue>-Struktur mit dem angegebenen Schlüssel und Wert.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)

Parameter

key
TKey TKey TKey TKey

Das Objekt, das in jedem Schlüssel-Wert-Paar definiert ist.The object defined in each key/value pair.

value
TValue TValue TValue TValue

Die key zugeordnete Definition.The definition associated with key.

Gilt für: