DataAdapter.AcceptChangesDuringFill 属性

定义

获取或设置一个值,该值指示在任何 Fill 操作过程中,在将 AcceptChanges() 添加到 DataRow 之后是否在 DataTable 上调用它。Gets or sets a value indicating whether AcceptChanges() is called on a DataRow after it is added to the DataTable during any of the Fill operations.

public:
 property bool AcceptChangesDuringFill { bool get(); void set(bool value); };
public bool AcceptChangesDuringFill { get; set; }
[System.Data.DataSysDescription("DataAdapter_AcceptChangesDuringFill")]
public bool AcceptChangesDuringFill { get; set; }
member this.AcceptChangesDuringFill : bool with get, set
Public Property AcceptChangesDuringFill As Boolean

属性值

Boolean

如果在 AcceptChanges() 上调用 DataRow,则为 true;否则为 falsetrue if AcceptChanges() is called on the DataRow; otherwise false. 默认为 trueThe default is true.

属性

注解

如果 false,则不会调用 AcceptChanges,新添加的行将被视为插入的行。If false, AcceptChanges is not called, and the newly added rows are treated as inserted rows.

适用于

另请参阅