DataAdapter.ContinueUpdateOnError Property

Definition

获取或设置一个值,该值指定在行更新过程中遇到错误时是否生成异常。Gets or sets a value that specifies whether to generate an exception when an error is encountered during a row update.

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

Property Value

Boolean

如果要继续更新而不生成异常,则为 true,否则为 falsetrue to continue the update without generating an exception; otherwise false. 默认为 falseThe default is false.

Attributes

Remarks

如果 ContinueUpdateOnError 设置为 true,则在更新行的过程中发生错误时不会引发异常。If ContinueUpdateOnError is set to true, no exception is thrown when an error occurs during the update of a row. 将跳过行的更新,并将错误信息置于错误的行的 RowError 属性中。The update of the row is skipped and the error information is placed in the RowError property of the row in error. DataAdapter 继续更新后续行。The DataAdapter continues to update subsequent rows.

如果 ContinueUpdateOnError 设置为 false,则在更新行的过程中发生错误时将引发异常。If ContinueUpdateOnError is set to false, an exception is thrown when an error occurs during the update of a row.

Applies to

See also