Data Source. Delete(IDictionary, IDictionary) Method
Performs a delete operation.
public: int Delete(System::Collections::IDictionary ^ keys, System::Collections::IDictionary ^ oldValues);
public int Delete (System.Collections.IDictionary keys, System.Collections.IDictionary oldValues);
member this.Delete : System.Collections.IDictionary * System.Collections.IDictionary -> int
Public Function Delete (keys As IDictionary, oldValues As IDictionary) As Integer
The row key values for the records to be deleted.
The row values that are evaluated to detect data conflicts.
The number of records affected by the delete operation.
Typically, you do not have to call the Delete method from your code. When you use a LinqDataSource control with a data-bound control, the data-bound control will automatically call the Delete method when the user takes action to delete a record. You explicitly call the Delete method when you want to create your own process for deleting data. For example, you can call the Delete method when you want to delete a record based on an event outside the data-bound control.