HttpFileCollection.CopyTo Method
.NET Framework 2.0
Copies members of the file collection to an Array beginning at the specified index of the array.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
The following example copies the entire file collection into a new Array object.
// Create the one-dimensional target array.
// Dimension it large enough to hold the files collection.
Array myArray = Array.CreateInstance(String.class.ToType(),
get_Request().get_Files().get_Count());
// Copy the entire collection to the array.
get_Request().get_Files().CopyTo(myArray, 0);
// Create the one-dimensional target Array. // Dimension it large enough to hold the files collection. var myArray : System.Array = System.Array.CreateInstance(System.String, Request.Files.Count) // Copy the entire files 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
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.
Community Additions
ADD
Show: