ESRI.ArcGIS.Mobile
FeatureDataReader Class
Members  Example  See Also  Send Feedback
ESRI.ArcGIS.Mobile.FeatureCaching Namespace : FeatureDataReader Class

The FeatureDataReader is the ADO equivalent of a cursor. The Read method moves the cursor to the next record. The IDataRecord members let you get the values from the record.

Object Model



Syntax

Visual Basic (Declaration) 
<DefaultMemberAttribute("Item")>
Public NotInheritable Class FeatureDataReader 
   Implements IFeatureDataRecordIFeatureDataRecordEdit 
C# 
[DefaultMemberAttribute("Item")]
public sealed class FeatureDataReader : IFeatureDataRecordIFeatureDataRecordEdit  

Example

C#Copy Code
using (FeatureDataReader fdr = fsource.GetDataReader(new QueryFilter(map1.Extent, GeometricRelationshipType.Intersect), EditState.Current)) 

  while (fdr.Read()) 
  { 
  // work with retrieved records 
  } 
} //dispose of FeatureDataReader

Remarks

It is important to note that the developer must release FeatureDataReader object when closing the application. One option is to employ using statement in C# which will ensure that the FeatureSource is disposed upon exiting the statement. See the examples below for more details.

To loop through each record, use Read method.

To check the status of a FeatureDataReader, use IsClosed property. To close a FeatureDataReader, use Close method.

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.Mobile.FeatureCaching.FeatureDataReader

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.