CodeCatchClauseCollection.CopyTo メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > CodeCatchClauseCollection.CopyTo メソッドの意味・解説 

CodeCatchClauseCollection.CopyTo メソッド

指定したインデックスコピー開始位置として、1 次元Array インスタンスコレクション オブジェクトコピーします

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

Public Sub CopyTo ( _
    array As CodeCatchClause(), _
    index As Integer _
)
Dim instance As CodeCatchClauseCollection
Dim array As CodeCatchClause()
Dim index As Integer

instance.CopyTo(array, index)
public void CopyTo (
    CodeCatchClause[] array,
    int index
)
public:
void CopyTo (
    array<CodeCatchClause^>^ array, 
    int index
)
public void CopyTo (
    CodeCatchClause[] array, 
    int index
)
public function CopyTo (
    array : CodeCatchClause[], 
    index : int
)

パラメータ

array

コレクションから値がコピーされる先の 1 次元Array

index

挿入開始位置を示す、配列内のインデックス

例外例外
例外種類条件

ArgumentException

配列先が多次元です。

または

CodeCatchClauseCollection 内の要素の数が、index パラメータ指定されターゲット配列インデックスからターゲット配列末尾までの間にある使用可能な空間大きさ超えてます。

ArgumentNullException

array パラメータnull 参照 (Visual Basic では Nothing) です。

ArgumentOutOfRangeException

index パラメータが、ターゲット配列最小インデックスより小さい値です。

使用例使用例
' Copies the contents of the collection beginning at index 0 to the
 specified CodeCatchClause array.
' 'clauses' is a CodeCatchClause array.
collection.CopyTo(clauses, 0)
// Copies the contents of the collection beginning at index 0 to the
 specified CodeCatchClause array.
// 'clauses' is a CodeCatchClause array.
collection.CopyTo( clauses, 0 );
// Copies the contents of the collection beginning at index 0 to the
 specified CodeCatchClause array.
// 'clauses' is a CodeCatchClause array.
collection->CopyTo( clauses, 0 );
// Copies the contents of the collection beginning at index 0 to
// the specified CodeCatchClause array.
// 'clauses' is a CodeCatchClause array.
collection.CopyTo(clauses, 0);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
CodeCatchClauseCollection クラス
CodeCatchClauseCollection メンバ
System.CodeDom 名前空間
Array クラス



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

辞書ショートカット

すべての辞書の索引

CodeCatchClauseCollection.CopyTo メソッドのお隣キーワード
検索ランキング

   

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



CodeCatchClauseCollection.CopyTo メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS