GetCount

HRESULT GetCount(
long& lCount);

Parameter

lCount Reference to buffer to receive count.

Return Code

S_OK

 Method succeeded.

E_NOINTERFACE

IRowsetExactScroll and IRowsetScroll are not available. lCount is set to zero if an error occurs.

E_FAIL

Returned if the object is not attached.

Comments

The GetCount method uses IRowsetExactScroll::GetExactPosition if it is available, or IRowsetScroll::GetApproximatePosition if the former is not available to get the number of rows in a rowset; the latter returns the approximate row count.