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

Делите путем


LinqDataSourceView.ValidateDeleteSupported(IDictionary, IDictionary) Method

Definition

Validates that the conditions exist to perform a delete operation.

C#
protected virtual void ValidateDeleteSupported(System.Collections.IDictionary keys, System.Collections.IDictionary oldValues);

Parameters

keys
IDictionary

A dictionary of key values for the data records to delete.

oldValues
IDictionary

A dictionary that contains row values to delete.

Exceptions

The GroupBy or SelectNew property contains a value.

Remarks

You cannot delete data when the GroupBy property or the SelectNew property contains a value other than null. For more information, see the LinqDataSource.EnableDelete property.

Applies to

Производ Верзије
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1