Прочитај на енглеском Уреди

Делите путем


LinqDataSourceView.Delete(IDictionary, IDictionary) Method

Definition

Performs a delete operation.

C#
public int Delete(System.Collections.IDictionary keys, System.Collections.IDictionary oldValues);

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

Производ Верзије
.NET Framework 3.5

See also