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
Tee yhteistyötä kanssamme GitHubissa
Tämän sisällön lähde on GitHubissa, jossa voit myös luoda ja tarkastella ongelmia ja pull-pyyntöjä. Katso lisätietoja osallistujan oppaasta.