Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RecordsAffected Property

RowUpdatedEventArgs.RecordsAffected Property

Gets the number of rows changed, inserted, or deleted by execution of the SQL statement.

[Visual Basic]
Public ReadOnly Property RecordsAffected As Integer
[C#]
public int RecordsAffected {get;}
[C++]
public: __property int get_RecordsAffected();
[JScript]
public function get RecordsAffected() : int;

Property Value

The number of rows changed, inserted, or deleted; 0 if no rows were affected or the statement failed; and -1 for SELECT statements.

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

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

Show:
© 2015 Microsoft