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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.