DataRowAction 列舉

定義

描述在 DataRow 上執行的動作。Describes an action performed on a DataRow.

此列舉具有 FlagsAttribute 個屬性允許以位元方式合併其成員值。

public enum class DataRowAction
public enum DataRowAction
[System.Flags]
public enum DataRowAction
type DataRowAction = 
Public Enum DataRowAction
繼承
DataRowAction
屬性

欄位

Add 16

資料列已經加入至資料表。The row has been added to the table.

Change 2

資料列已經變更。The row has changed.

ChangeCurrentAndOriginal 64

資料列的原始和目前版本已經變更。The original and the current versions of the row have been changed.

ChangeOriginal 32

資料列的原始版本已經變更。The original version of the row has been changed.

Commit 8

資料列的變更已經認可。The changes to the row have been committed.

Delete 1

資料列已經從資料表刪除。The row was deleted from the table.

Nothing 0

資料列尚未變更。The row has not changed.

Rollback 4

資料列最近的變更已經復原。The most recent change to the row has been rolled back.

備註

DataRowAction 會當做 DataRowChangeEventArgs 的一部分傳回,以指出針對資料列引發事件所採取的動作。A DataRowAction is returned as part of the DataRowChangeEventArgs to indicate the action that was taken on a row to raise the event.

使用此列舉類型的成員,來判斷在 DataRow 上發生的動作(相對於它所屬的 DataTable 而言)。Use the members of this enumeration to determine the action that has occurred on a DataRow with regard to the DataTable to which it belongs.

適用於

另請參閱