Performs a delete operation using the DeleteMethod method and the specified keys and oldValues collection.
Assembly: System.Web (in System.Web.dll)
- Type: System.Collections.IDictionary
A IDictionary of parameters used with the DeleteMethod property to perform the delete operation. If there are no parameters associated with the method, pass null.
The ObjectDataSourceView class implements the inherited method to delete data from an underlying data store using a business object. Page developers and data-bound control authors do not call the method directly; instead, use the publicly exposed Delete method.
Before the delete operation is performed, the OnDeleting method is called to raise the Deleting event. You can handle this event to examine the values of the parameters and perform any preprocessing before the Delete method is called.
To perform a delete operation, the ObjectDataSourceView uses reflection to call the method that is identified by the DeleteMethod property and any associated parameters in the keys and oldValues collections, and then executes it. After the operation completes, the OnDeleted method is called to raise the Deleted event. You can handle this event to examine any return values and error codes, and to perform any post-processing.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.