DataRow.SetAdded 方法

定义

DataRowRowState 更改为 AddedChanges the RowState of a DataRow to Added.

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

注解

DataRowRowState 更改为 AddedChanges the RowState of a DataRow to Added. 如果当前行未处于 UnchangedAdded 状态,则它将引发一 InvalidOperationException 条消息,该消息 SetAdded 只能在 DataRow 的实例上调用 RowState UnchangedIf the current row is not in either an Unchanged or an Added state, it throws an InvalidOperationException with the message that SetAdded can only be invoked on a DataRow instance where the RowState is Unchanged.

适用于

另请参阅