RowCollection Class (PIA)

Use this object to access data contained in a ContentList object and its corresponding ContentListFactory object. Some RowCollection objects allow access to all of the rows in these objects. Other RowCollection objects allow access to a calculated subset of the rows in these objects.

This object supports the IEnumerable interface. Use the GetEnumerator method on this interface to iterate through the collection.

Methods

Method Description
GetEnumerator Returns an enumerator for RowCollection objects.
MoveFirst Sets the first row in the RowCollection object to be the current row.
MoveNext Sets the row after the current row in the RowCollection object to be the new current row.

Properties

Property Type Description
Count Integer Stores the number of rows in the RowCollection object.

This property is read-only.

EOF Boolean Contains a Boolean that returns True when the end of the collection has been reached.

This property is read-only.

Fields ADODB26Lib.Fields Contains the Fields collection object for the current row.

This property is read-only.

RowNum Integer Stores the position of the current row, starting from zero (0).

This property is read-only.

Remarks

[Visual Basic .NET]

The RowCollection object is a dependent object. Obtain a reference to it by using the following properties and methods:

[C#]

The RowCollection object is a dependent object. Obtain a reference to an object that implements the IRowCollection interface by calling one of the following methods/properties:

Note that the above methods return an IRowCollection interface that will need to be cast to a RowCollection object, as follows:

RowCollection rc = (RowCollection)ContentList.ActiveRows;

Requirements

Namespace: Microsoft.CommerceServer.Interop.Caching

Platforms: Windows 2000, Windows Server 2003

Assembly: cachecomplib (in cachecomplib.dll)

Copyright © 2005 Microsoft Corporation.
All rights reserved.