Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
UL Ext:返回游标中的行数(在阈值内)。
Public Function GetRowCount(ByVal threshold As Integer) As Integer
public int GetRowCount(int threshold)
threshold 行计数的阈值限制。
ULException 类 发生 SQL 错误。
游标中的行数。
对于复杂查询,使用 RowCount 属性的开销较高,因为该属性需要从游标行中传递。通过使用 GetRowCount( threshold ) 方法,调用程序可以确定是否至少存在阈值行。如果行数低于阈值,将返回该值;否则,将返回阈值。可以使用更大的阈值再次调用此方法。
如果阈值为 0,则返回 RowCount 属性。