VirtualDirectoryMappingCollection.CopyTo Method (VirtualDirectoryMapping[], Int32)

 

Copies the entire VirtualDirectoryMappingCollection collection to a compatible one-dimensional Array, starting at the specified index of the target array.

Namespace:   System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

member CopyTo : 
        array:VirtualDirectoryMapping[] *
        index:int -> unit

Parameters

array
Type: System.Web.Configuration.VirtualDirectoryMapping[]

A one-dimensional Array that is the destination of the elements copied from the VirtualDirectoryMappingCollection. The Array must have zero-based indexing.

index
Type: System.Int32

The zero-based index in array at which copying begins.

Exception Condition
ArgumentNullException

array is null.

ArgumentOutOfRangeException

The Length property of array is less than the value of Count plus index.

.NET Framework
Available since 2.0
Return to top
Show: