System.Web.UI.DataSourceView.Delete Method

Performs an asynchronous delete operation on the list of data that the System.Web.UI.DataSourceView object represents.

Syntax

public virtual void Delete (IDictionary keys, IDictionary values, DataSourceViewOperationCallback callBack)

Parameters

values
Documentation for this section has not yet been entered.
callBack
Documentation for this section has not yet been entered.
keys
An IDictionary of object or row keys to be deleted by the DataSourceView.ExecuteDelete(IDictionary, IDictionary) operation.

Remarks

The DataSourceView.Delete(IDictionary, IDictionary, DataSourceViewOperationCallback) method is the asynchronous data deletion interface for all data source view objects. The DataSourceView.Delete(IDictionary, IDictionary, DataSourceViewOperationCallback) method calls the DataSourceView.ExecuteDelete(IDictionary, IDictionary) method using any keys and oldValues parameter values supplied. The callback parameter is a delegate that a data-bound control passes to the data source view, which is used to notify the data-bound control when the DataSourceView.ExecuteDelete(IDictionary, IDictionary) operation has completed. The method uses the parameters of the System.Web.UI.DataSourceViewOperationCallback delegate to return the number of affected records and any Exception exception that is thrown by the DataSourceView.ExecuteDelete(IDictionary, IDictionary) method.

Requirements

Namespace: System.Web.UI
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0