This documentation is archived and is not being maintained.

DataAdapter.ContinueUpdateOnError Property

Gets or sets a value that specifies whether to generate an exception when an error is encountered during a row update.

[Visual Basic]
Public Property ContinueUpdateOnError As Boolean
[C#]
public bool ContinueUpdateOnError {get; set;}
[C++]
public: __property bool get_ContinueUpdateOnError();
public: __property void set_ContinueUpdateOnError(bool);
[JScript]
public function get ContinueUpdateOnError() : Boolean;
public function set ContinueUpdateOnError(Boolean);

Property Value

true to continue the update without generating an exception; otherwise false. The default is false.

Remarks

If ContinueUpdateOnError is set to true, no exception is thrown when an error occurs during the update of a row. The update of the row is skipped and the error information is placed in the RowError property of the row in error. The DataAdapter continues to update subsequent rows.

If ContinueUpdateOnError is set to false, an exception is thrown when an error occurs during the update of a row.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

DataAdapter Class | DataAdapter Members | System.Data.Common Namespace

Show: