DataSourceViewOperationCallback 委托
定义
表示数据绑定控件向数据源视图提供的、用于进行异步插入、更新或删除数据操作的异步回调方法。Represents the asynchronous callback method that a data-bound control supplies to a data source view for asynchronous insert, update, or delete data operations.
public delegate bool DataSourceViewOperationCallback(int affectedRecords, Exception ^ ex);
public delegate bool DataSourceViewOperationCallback(int affectedRecords, Exception ex);
type DataSourceViewOperationCallback = delegate of int * Exception -> bool
Public Delegate Function DataSourceViewOperationCallback(affectedRecords As Integer, ex As Exception) As Boolean
参数
- affectedRecords
- Int32
数据操作影响的记录数。The number of records that the data operation affected.
- ex
- Exception
如果在处理过程中数据操作引发一个异常,则为 Exception。An Exception, if one is thrown by the data operation during processing.
返回值
一个值,指示是否处理了在数据操作过程中引发的任何异常。A value indicating whether any exceptions thrown during the data operation were handled.
注解
默认情况下,ASP.NET 网页和控件执行是同步的。By default, ASP.NET Web page and control execution is synchronous. 但是,可以对数据源控件进行扩展,以支持异步数据检索和数据操作。However, data source controls can be extended to support asynchronous data retrieval and data operations. DataSourceView对象支持 Insert Update Delete 用于异步数据处理的、和方法。The DataSourceView object supports the Insert, Update, and Delete methods for asynchronous data processing. DataSourceViewOperationCallback委托通过数据绑定控件传递到数据源视图,因此,在异步处理完成后,视图可以调用此委托,并通知数据绑定控件操作的结果。The DataSourceViewOperationCallback delegate is passed to the data source view by a data-bound control, so that the view can call this delegate when asynchronous processing is complete and notify the data-bound control of the operation's outcome.
扩展方法
| GetMethodInfo(Delegate) |
获取指示指定委托表示的方法的对象。Gets an object that represents the method represented by the specified delegate. |