LinqDataSource.Delete(IDictionary, IDictionary) Method

Definition

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

Parameters

keys
IDictionary

The row key values for the records to be deleted.

oldValues
IDictionary

The row values that are evaluated to detect data conflicts.

Returns

The number of records affected by the delete operation.

Remarks

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.

Applies to