DbCommandBuilder.SetRowUpdatingHandler(DbDataAdapter) 方法

定义

注册 DbCommandBuilder 以处理 RowUpdatingDbDataAdapter 事件。Registers the DbCommandBuilder to handle the RowUpdating event for a DbDataAdapter.

protected:
 abstract void SetRowUpdatingHandler(System::Data::Common::DbDataAdapter ^ adapter);
protected abstract void SetRowUpdatingHandler (System.Data.Common.DbDataAdapter adapter);
abstract member SetRowUpdatingHandler : System.Data.Common.DbDataAdapter -> unit
Protected MustOverride Sub SetRowUpdatingHandler (adapter As DbDataAdapter)

参数

adapter
DbDataAdapter

要用于更新的 DbDataAdapterThe DbDataAdapter to be used for the update.

注解

此方法旨在供提供程序编写器生成自定义命令生成器使用。This method is intended for use by provider writers building a custom command builder. DbCommandBuilder中添加新的 DbDataAdapter 时,会为 DbDataAdapter 的RowUpdating事件注册此新的。When a new DbDataAdapter is added to the DbCommandBuilder, it is registered for the DbDataAdapter's RowUpdating event. 如果用相同的 DbDataAdapter再次调用此方法,则会为该 DbDataAdapter 的RowUpdating事件取消注册该 DbCommandBuilderIf this method is called again with the same DbDataAdapter, the DbCommandBuilder is unregistered for that DbDataAdapter's RowUpdating event.

适用于

另请参阅