ICollection(KeyValuePair(TKey, TValue)).CopyTo 方法

從特定的 Array 索引開始,將集合的項目複製至 Array

命名空間:  System.Collections.Immutable
組件:  System.Collections.Immutable (在 System.Collections.Immutable.dll 中)

語法

'宣告
Private Sub CopyTo ( _
    array As KeyValuePair(Of TKey, TValue)(), _
    arrayIndex As Integer _
) Implements ICollection(Of KeyValuePair(Of TKey, TValue)).CopyTo
void ICollection<KeyValuePair<TKey, TValue>>.CopyTo(
    KeyValuePair<TKey, TValue>[] array,
    int arrayIndex
)
private:
virtual void CopyTo(
    array<KeyValuePair<TKey, TValue>>^ array, 
    int arrayIndex
) sealed = ICollection<KeyValuePair<TKey, TValue>>::CopyTo
private abstract CopyTo : 
        array:KeyValuePair<'TKey, 'TValue>[] * 
        arrayIndex:int -> unit 
private override CopyTo : 
        array:KeyValuePair<'TKey, 'TValue>[] * 
        arrayIndex:int -> unit 
JScript 不支援明確介面實作。

參數

  • arrayIndex
    類型:System. . :: . .Int32
    array 中以零為起始的索引,即開始複製的位置。

Implements

ICollection< (Of < ( <'T> ) > ) >. . :: . .CopyTo(array<T> [] () [] [], Int32)

備註

這個成員是明確介面成員實作。 只有在 ImmutableDictionary<(Of <(<'TKey, TValue>)>)> 執行個體轉換成 ICollection<(Of <(<'T>)>)> 介面時,才能使用這個成員。

.NET Framework 安全性

請參閱

參考

ImmutableDictionary< (Of < ( <'TKey, TValue> ) > ) > 類別

System.Collections.Immutable 命名空間