SqlBulkCopyColumnMappingCollection.CopyTo(SqlBulkCopyColumnMapping[], Int32) 方法

定义

从特定索引处开始,将 SqlBulkCopyColumnMappingCollection 的元素复制到 SqlBulkCopyColumnMapping 项的数组。Copies the elements of the SqlBulkCopyColumnMappingCollection to an array of SqlBulkCopyColumnMapping items, starting at a particular index.

public:
 void CopyTo(cli::array <System::Data::SqlClient::SqlBulkCopyColumnMapping ^> ^ array, int index);
public void CopyTo (System.Data.SqlClient.SqlBulkCopyColumnMapping[] array, int index);
member this.CopyTo : System.Data.SqlClient.SqlBulkCopyColumnMapping[] * int -> unit
Public Sub CopyTo (array As SqlBulkCopyColumnMapping(), index As Integer)

参数

array
SqlBulkCopyColumnMapping[]

作为从 SqlBulkCopyColumnMapping 复制的元素的目标位置的一维 SqlBulkCopyColumnMappingCollection 数组。The one-dimensional SqlBulkCopyColumnMapping array that is the destination of the elements copied from SqlBulkCopyColumnMappingCollection. 该数组的索引必须从零开始。The array must have zero-based indexing.

index
Int32

array 中从零开始的索引,从此处开始复制。The zero-based index in array at which copying begins.

适用于

另请参阅