Dictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.CopyTo メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ICollection<T>の要素を、指定した配列インデックスから始まるKeyValuePair<TKey,TValue>型の配列にコピーします。
virtual void System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo(cli::array <System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ array, int index) = System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<TKey, TValue>>::CopyTo;
void ICollection<KeyValuePair<TKey,TValue>>.CopyTo(System.Collections.Generic.KeyValuePair<TKey,TValue>[] array, int index);
abstract member System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo : System.Collections.Generic.KeyValuePair<'Key, 'Value>[] * int -> unit
override this.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo : System.Collections.Generic.KeyValuePair<'Key, 'Value>[] * int -> unit
Sub CopyTo (array As KeyValuePair(Of TKey, TValue)(), index As Integer) Implements ICollection(Of KeyValuePair(Of TKey, TValue)).CopyTo
パラメーター
- array
- KeyValuePair<TKey,TValue>[]
ICollection<T>からコピーされたKeyValuePair<TKey,TValue>要素のコピー先であるKeyValuePair<TKey,TValue>型の 1 次元配列。 配列には、0 から始まるインデックスが必要です。
- index
- Int32
コピーを開始する array の 0 から始まるインデックス。
実装
例外
array は nullです。
index が 0 未満です。
ソース ICollection<T> 内の要素の数が、 index からコピー先の arrayの末尾までの使用可能な領域を超えています。