Share via


NonQueryResult.RowsAffected Property

Gets or sets the number of rows that are affected by the ExecuteNonQuery method.

Namespace:  Microsoft.SqlServer.Management.MultiServerConnection
Assembly:  Microsoft.SqlServer.Management.MultiServerConnection (in Microsoft.SqlServer.Management.MultiServerConnection.dll)

Syntax

'Declaration
Public Property RowsAffected As Integer
    Get
    Set
'Usage
Dim instance As NonQueryResult
Dim value As Integer

value = instance.RowsAffected

instance.RowsAffected = value
public int RowsAffected { get; set; }
public:
property int RowsAffected {
    int get ();
    void set (int value);
}
member RowsAffected : int with get, set
function get RowsAffected () : int
function set RowsAffected (value : int)

Property Value

Type: System.Int32
The number of rows that are affected by the ExecuteNonQuery method.