LinqDataSourceView.ValidateDeleteSupported(IDictionary, IDictionary) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
CanDelete is false
.
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
Surađujte s nama na GitHubu
Izvor za ovaj sadržaj možete pronaći na GitHubu, gdje možete stvarati i pregledavati probleme i zahtjeve za povlačenjem. Dodatne informacije potražite u našem vodiču za suradnike.