SortedList.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > SortedList.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo メソッドの意味・解説 

SortedList.System.Collections.Generic.ICollection>.CopyTo メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

ICollection要素ArrayコピーしますArray特定のインデックスからコピー開始されます。

名前空間: System.Collections.Generic
アセンブリ: System (system.dll 内)
構文構文

Private Sub System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo
 ( _
    array As KeyValuePair(Of TKey, TValue)(),
 _
    arrayIndex As Integer _
) Implements ICollection(Of KeyValuePair(Of
 TKey, TValue)).CopyTo
Dim instance As SortedList(Of
 TKey, TValue)
Dim array As KeyValuePair(Of
 TKey, TValue)()
Dim arrayIndex As Integer

CType(instance, ICollection(Of KeyValuePair(Of
 TKey, TValue))).CopyTo(array, arrayIndex)
void ICollection<KeyValuePair<TKey,TValue>>.CopyTo
 (
    KeyValuePair<TKey,TValue>[] array,
    int arrayIndex
)
private:
virtual void System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo
 (
    array<KeyValuePair<TKey, TValue>>^ array, 
    int arrayIndex
) sealed = ICollection<KeyValuePair<TKey, TValue>>::CopyTo

パラメータ

array

ICollection から要素コピーされる 1 次元ArrayArray には、0 から始まるインデックス番号が必要です。

arrayIndex

コピー開始位置となる、array の 0 から始まるインデックス番号

例外例外
例外種類条件

ArgumentNullException

arraynull 参照 (Visual Basic では Nothing) です。

ArgumentOutOfRangeException

arrayIndex が 0 未満です。

ArgumentException

arrayIndexarray長さ上です。

または

コピー元の ICollection要素数が、arrayIndex からコピー先の array末尾までに格納できる数を超えてます。

解説解説

このメソッドは、System.Collections.Generic.KeyValuePair の既定比較演算子 Comparer.Default を使用して等しかどうか判断します

このメソッドは O(n) 操作です。ここで、nCount です。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
SortedList ジェネリック クラス
SortedList メンバ
System.Collections.Generic 名前空間
KeyValuePair ジェネリック構造体


このページでは「.NET Framework クラス ライブラリ リファレンス」からSortedList.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からSortedList.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からSortedList.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo メソッドを検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

SortedList.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



SortedList.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS