SqlBulkCopy::WriteToServerAsync Method (DbDataReader^)

.NET Framework (current version)
 

The asynchronous version of WriteToServer, which copies all rows from the supplied DbDataReader array to a destination table specified by the DestinationTableName property of the SqlBulkCopy object.

Namespace:   System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

public:
Task^ WriteToServerAsync(
	DbDataReader^ reader
)

Parameters

reader
Type: System.Data.Common::DbDataReader^

A DbDataReader whose rows will be copied to the destination table.

Return Value

Type: System.Threading.Tasks::Task^

A task representing the asynchronous operation.

.NET Framework
Available since 4.6
Return to top
Show: