Initializes a ULBulkCopy object with the specified connection string and copy options.
Visual Basic
Public Sub New( _
ByVal connectionString As String, _
ByVal copyOptions As ULBulkCopyOptions _
)
C#
public ULBulkCopy(
string connectionString,
ULBulkCopyOptions copyOptions
);
connectionString The string defining the connection that will be opened for use by the ULBulkCopy instance. A connection string is a semicolon-separated list of keyword=value pairs.
For a list of parameters, see the ConnectionString property.copyOptions A combination of values from the ULBulkCopyOptions enumeration that determines how data source rows are copied to the destination table.
This syntax opens a connection during WriteToServer using connectionString. The connection is closed at the end of WriteToServer.
Restrictions: The ULBulkCopy class is not available in the .NET Compact Framework 2.0.