RecordsAffected Property
See Also 
SourceCode.SmartObjects.Client Namespace > SmartObjectReader Class : RecordsAffected Property



Glossary Item Box

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

Syntax

Visual Basic (Declaration) 
Public Overrides ReadOnly Property RecordsAffected As Integer
Visual Basic (Usage)Copy Code
Dim instance As SmartObjectReader
Dim value As Integer
 
value = instance.RecordsAffected
C# 
public override int RecordsAffected {get;}
C++/CLI 
public:
property int RecordsAffected {
   int get() override;
}

Property Value

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

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also