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
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา