Редагувати

Поділитися через


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(cli::array <System::Web::UI::WebControls::DataControlField ^> ^ array, int index);
public void CopyTo (System.Web.UI.WebControls.DataControlField[] array, int index);
override this.CopyTo : System.Web.UI.WebControls.DataControlField[] * int -> unit
Public Sub CopyTo (array As DataControlField(), index As Integer)

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

See also