NextResult Method

SqlDataReader.NextResult Method ()

 

Advances the data reader to the next result, when reading the results of batch Transact-SQL statements.

Namespace:   System.Data.SqlClient
Assembly:  System.Data (in System.Data.dll)

public override bool NextResult()

Return Value

Type: System.Boolean

true if there are more result sets; otherwise false.

Used to process multiple results, which can be generated by executing batch Transact-SQL statements.

By default, the data reader is positioned on the first result.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft