KeyValuePair.Create<TKey,TValue>(TKey, TValue) Metoda

Definice

Vytvoří novou instanci páru klíč/hodnota pomocí zadaných hodnot.

public:
generic <typename TKey, typename TValue>
 static System::Collections::Generic::KeyValuePair<TKey, TValue> Create(TKey key, TValue value);
public static System.Collections.Generic.KeyValuePair<TKey,TValue> Create<TKey,TValue> (TKey key, TValue value);
static member Create : 'Key * 'Value -> System.Collections.Generic.KeyValuePair<'Key, 'Value>
Public Shared Function Create(Of TKey, TValue) (key As TKey, value As TValue) As KeyValuePair(Of TKey, TValue)

Parametry typu

TKey

Typ klíče.

TValue

Typ hodnoty

Parametry

key
TKey

Klíč nového KeyValuePair<TKey,TValue> , který se má vytvořit.

value
TValue

Hodnota nového KeyValuePair<TKey,TValue> , který se má vytvořit.

Návraty

Pár klíč/hodnota obsahující zadané argumenty jako hodnoty.

Platí pro