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

Definição

Inicializa uma nova instância da estrutura KeyValuePair<TKey,TValue> com a chave e o valor especificados.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)

Parâmetros

key
TKey TKey TKey TKey

O objeto definido em cada par chave/valor.The object defined in each key/value pair.

value
TValue TValue TValue TValue

A definição associada a key.The definition associated with key.

Aplica-se a