Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
CopyTo Method
Collapse the table of content
Expand the table of content

VirtualDirectoryMappingCollection.CopyTo Method

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)

'Declaration
Public Sub CopyTo ( _
	array As VirtualDirectoryMapping(), _
	index As Integer _
)

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.

ExceptionCondition
ArgumentNullException

array is Nothing.

ArgumentOutOfRangeException

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

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0
Show:
© 2015 Microsoft