OrderedDictionary<TKey,TValue>.SetAt Método

Definição

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.

Aplica-se a