OrderedDictionary<TKey,TValue>.SetAt 方法

定义

重载

SetAt(Int32, TValue)

设置指定索引处的键的值。

SetAt(Int32, TKey, TValue)

设置指定索引处的键/值对。

SetAt(Int32, TValue)

设置指定索引处的键的值。

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)

参数

index
Int32

要获取或设置的元素的从零开始的索引。

value
TValue

要存储在指定索引处的值。

适用于

SetAt(Int32, TKey, TValue)

设置指定索引处的键/值对。

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)

参数

index
Int32

要获取或设置的元素的从零开始的索引。

key
TKey

要存储在指定索引处的键。

value
TValue

要存储在指定索引处的值。

例外

适用于