DataControlFieldCollection.CopyTo(DataControlField[], Int32) Method

Definition

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

public void CopyTo (System.Web.UI.WebControls.DataControlField[] array, int index);

Parameters

array
DataControlField[]

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

index
Int32

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

Exceptions

array is null.

index is less than zero.

array is multidimensional.

-or-

The number of fields in the source DataControlFieldCollection collection is greater than the available space from index to the end of the destination array.

Applies to

製品 バージョン
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also