This document is archived and information here might be outdated. Recommended version. |
The cursor of rows based on a set of object ids.
[Visual Basic .NET] Public Function GetRows ( _ ByVal oids As Object, _ ByVal Recycling As Boolean _ ) As ICursor
[C#] public ICursor GetRows ( object oids, bool Recycling );
[C++]
HRESULT GetRows(
VARIANT oids,
VARIANT_BOOL Recycling
);
[C++] Parameters oids [in]
oids is a parameter of type VARIANT Recycling [in]
Recycling is a parameter of type bool
The GetRows method returns a cursor that may be used to retrieve a set of rows specified by the input array of object id values. See the description of the Search method to understand the meaning of the recycling parameter. It is far more efficient to retrieve a set of rows using the GetRows method than it is to retrieve each individual row using the GetRow method. The retrieved rows may be modified; Store should be called on the row objects after changing them.
The oids parameter should be passed an integer array. For example:
// Get a recycling cursor for the OID array.
int[] oidArray = new int[] { 10844, 10853, 10871 };
ICursor cursor = table.GetRows(oidArray, true);