OrderedDictionary<TKey,TValue>.SetAt Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Sobrecargas
| Name | Description |
|---|---|
| SetAt(Int32, TValue) |
Define o valor da chave no índice especificado. |
| SetAt(Int32, TKey, TValue) |
Define o par chave/valor no índice especificado. |
SetAt(Int32, TValue)
- Origem:
- OrderedDictionary.cs
- Origem:
- OrderedDictionary.cs
- Origem:
- OrderedDictionary.cs
Define o valor da chave no índice especificado.
public:
void SetAt(int index, TValue value);
public void SetAt(int index, TValue value);
member this.SetAt : int * 'Value -> unit
Public Sub SetAt (index As Integer, value As TValue)
Parâmetros
- index
- Int32
O índice em base zero do elemento a obter ou definir.
- value
- TValue
O valor a armazenar no índice especificado.
Exceções
index é menor que 0 ou maior ou igual a Count.
Aplica-se a
SetAt(Int32, TKey, TValue)
- Origem:
- OrderedDictionary.cs
- Origem:
- OrderedDictionary.cs
- Origem:
- OrderedDictionary.cs
Define o par chave/valor no índice especificado.
public:
void SetAt(int index, TKey key, TValue value);
public void SetAt(int index, TKey key, TValue value);
member this.SetAt : int * 'Key * 'Value -> unit
Public Sub SetAt (index As Integer, key As TKey, value As TValue)
Parâmetros
- index
- Int32
O índice em base zero do elemento a obter ou definir.
- key
- TKey
A chave a armazenar no índice especificado.
- value
- TValue
O valor a armazenar no índice especificado.
Exceções
key é null.
index é menor que 0 ou maior ou igual a Count.