Επεξεργασία

Κοινή χρήση μέσω


LinqDataSourceView.ValidateDeleteSupported(IDictionary, IDictionary) Method

Definition

Validates that the conditions exist to perform a delete operation.

protected:
 virtual void ValidateDeleteSupported(System::Collections::IDictionary ^ keys, System::Collections::IDictionary ^ oldValues);
protected virtual void ValidateDeleteSupported (System.Collections.IDictionary keys, System.Collections.IDictionary oldValues);
abstract member ValidateDeleteSupported : System.Collections.IDictionary * System.Collections.IDictionary -> unit
override this.ValidateDeleteSupported : System.Collections.IDictionary * System.Collections.IDictionary -> unit
Protected Overridable Sub ValidateDeleteSupported (keys As IDictionary, oldValues As IDictionary)

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