SqlCommandBuilder Constructor (SqlDataAdapter^)

 

Initializes a new instance of the SqlCommandBuilder class with the associated SqlDataAdapter object.

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

public:
SqlCommandBuilder(
	SqlDataAdapter^ adapter
)

Parameters

adapter
Type: System.Data.SqlClient::SqlDataAdapter^

The name of the SqlDataAdapter.

The SqlCommandBuilder registers itself as a listener for RowUpdating events that are generated by the SqlDataAdapter specified in this property.

When you create a new instance of SqlCommandBuilder, any existing SqlCommandBuilder associated with this SqlDataAdapter is released.

.NET Framework
Available since 1.1
Return to top
Show: