DataRow.SetModified 方法

定义

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

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

注解

DataRowRowState 更改为 ModifiedChanges the RowState of a DataRow to Modified. 如果当前行未处于 UnchangedAdded 状态,则它将引发一 InvalidOperationException 条消息,该消息 SetModified 只能在 DataRow 的实例上调用 RowState UnchangedIf 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.

适用于

另请参阅