DbDataReader.NextResult 方法

定义

在派生类中重写时,在读取一批语句的结果时,使读取器前进到下一个结果。When overridden in a derived class, advances the reader to the next result when reading the results of a batch of statements.

public:
 abstract bool NextResult();
public abstract bool NextResult ();
abstract member NextResult : unit -> bool
Public MustOverride Function NextResult () As Boolean

返回

Boolean

如果存在多个结果集,则为 true;否则为 falsetrue if there are more result sets; otherwise, false.

实现

注解

此方法可用于处理向数据提供程序提交一批语句后返回的多个结果集。This method allows you to process multiple result sets returned when a batch is submitted to the data provider.

适用于

另请参阅