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

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

CompilerErrorCollection.CopyTo メソッド

1 次元Array インスタンス指定したインデックス位置に、コレクション値をコピーします

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

Public Sub CopyTo ( _
    array As CompilerError(), _
    index As Integer _
)
Dim instance As CompilerErrorCollection
Dim array As CompilerError()
Dim index As Integer

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

パラメータ

array

CompilerErrorCollection の値のコピー先である 1 次元Array

index

コピー先の配列内のコピー開始位置を示すインデックス

例外例外
例外種類条件

ArgumentException

array パラメータ指定されている配列多次元です。

または

CompilerErrorCollection 内の要素の数が、array パラメータ指定されている配列内のarrayIndex パラメータ指定されているインデックス値から、array パラメータ指定されている配列末尾までで使用できる数を超えてます。

ArgumentNullException

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

ArgumentOutOfRangeException

arrayIndex パラメータの値が、array パラメータ指定されている配列下限値より小さくなっています。

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


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS