DataRow.SetModified Method

Definition

DataRowRowState 更改为 ModifiedChanges the RowState of a DataRow to Modified.

public:
 void SetModified();
public void SetModified ();
member this.SetModified : unit -> unit
Public Sub SetModified ()

Remarks

DataRowRowState 更改为 ModifiedChanges the RowState of a DataRow to Modified. 如果当前行不处于 UnchangedAdded 状态,则会引发一个 InvalidOperationException 消息 SetModified,该消息只可在 DataRow RowState Unchanged实例上调用。If the current row is not in either an Unchanged or an Added state, it throws an InvalidOperationException with the message that SetModified can only be invoked on a DataRow instance where the RowState is Unchanged.

Applies to

See also