次の方法で共有


xApplication.Eventdelete(Common) Method

Definition

Serves as a callback that is called by the kernel when a record in a table is deleted, provided that the kernel has been set up to monitor records in that table.

public:
 virtual void Eventdelete(Microsoft::Dynamics::Ax::Xpp::Common ^ recordDeleted);
public virtual void Eventdelete (Microsoft.Dynamics.Ax.Xpp.Common recordDeleted);
abstract member Eventdelete : Microsoft.Dynamics.Ax.Xpp.Common -> unit
override this.Eventdelete : Microsoft.Dynamics.Ax.Xpp.Common -> unit
Public Overridable Sub Eventdelete (recordDeleted As Common)

Parameters

recordDeleted
Common

The deleted record.

Remarks

A developer can set up the kernel to call back on deletes for a given table. This can be accomplished by inserting a record into the DatabaseLog kernel table with all fields set to relevant values, which includes setting the field logType to EventDelete. This is very similar to how the logDelete method is called and set up. The call of this method will be in the transaction in which the record is deleted.

Applies to