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

Делите путем


LinqDataSourceView.ValidateUpdateSupported Method

Definition

Validates that the conditions exist to perform an update operation.

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

Parameters

keys
IDictionary

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

values
IDictionary

A dictionary that contains new row values for the update operation.

oldValues
IDictionary

A dictionary that contains the old row values for the update operation.

Exceptions

The update operation is not supported.

Remarks

You cannot update data when the GroupBy property or the SelectNew property contains a value other than null. For more information, see the LinqDataSource.EnableUpdate 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