Specifies the status of a record.


A record is either New or Existing. An existing record marked for deletion gets the status ExistingDelete.


The Record.RecordStatus method returns the DataRecordStatus enum.


The RecordStatus can not be set directly.


You can only change statuses New and ExistingDelete to Existing by calling the Record.ResetToExisting or Record.ResetToUnmodifiedExisting methods.


public enum DataRecordStatus : byte

{

   New = 0,

   Existing = 1,

   ExistingDelete = 2

}

New

A new record.


This will result in an INSERT statement being executed on the database.

Existing

An existing record. The record exists in the database.


This will result in an UPDATE statement being executed on the database.

ExistingDelete

An existing record that is marked for deletion.


This will result in a DELETE statement being executed on the database.