Editare

Partajați prin


LinqDataSourceView.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);
override 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 delete.

oldValues
IDictionary

The row values that are evaluated to detect data conflicts.

Returns

The number of rows that were deleted from the data source.

Exceptions

The LinqDataSource control cannot establish a connection to the underlying data source.

The CanDelete property is false.

Remarks

The Delete method calls the ExecuteDelete(IDictionary, IDictionary) method, passing the keys and oldValues parameters.

For information about how to delete data with the LinqDataSource control, see the Delete(IDictionary, IDictionary) method of the LinqDataSource class.

Applies to

See also