HttpFileCollection.CopyTo メソッド
アセンブリ: System.Web (system.web.dll 内)

Dim instance As HttpFileCollection Dim dest As Array Dim index As Integer instance.CopyTo(dest, index)

新しい Array オブジェクトにファイル コレクション全体をコピーする例を次に示します。
' Create the one-dimensional target array. ' Dimension it large enough to hold the files collection. Dim MyArray As Array = Array.CreateInstance(GetType(String), Request.Files.Count) ' Copy the entire collection to the array. Request.Files.CopyTo(MyArray, 0)
// Create the one-dimensional target array. // Dimension it large enough to hold the files collection. Array MyArray = Array.CreateInstance( typeof(String), Request.Files.Count ); // Copy the entire collection to the array. Request.Files.CopyTo( MyArray, 0 );

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- HttpFileCollection.CopyTo メソッドのページへのリンク