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

A FeatureDataTable is a specific implementation of an ADO.Net DataTable. It provides a spatial index for a faster row retrieval based on spatial search.

Object Model




Syntax

Visual Basic (Declaration) 
<DesignerCategoryAttribute("code")>
<DefaultMemberAttribute("Item")>
<DesignTimeVisibleAttribute()>
<SerializableAttribute()>
Public Class FeatureDataTable 
   Inherits DataTable
C# 
[DesignerCategoryAttribute("code")]
[DefaultMemberAttribute("Item")]
[DesignTimeVisibleAttribute()]
[SerializableAttribute()]
public class FeatureDataTable : DataTable 

Remarks

To add a feature, use FeatureDataTable.NewRow() method to create a new DataRow, set geometry to geometry column, and then add the DataRow to the FeatureDataTable.

It's worth noting that, before adding the DataRow to the FeatureDataTable, developer needs to check the properties for each field in the DataRow, and make sure any field that doesn't allow null value has been assigned a valid value based on its data type. Mobile SDK will take care of calculating values for Shape.Area and Shape.Length.

To delete a feature from the feature layer, get the DataRow using FeatureDataTable.Rows[index] (or by other approaches), then use DataRow.Delete() method.

To update the MobileService, use FeatureDataTable.SaveInFeatureSource method.

Inheritance Hierarchy

System.Object
   System.ComponentModel.MarshalByValueComponent
      System.Data.DataTable
         ESRI.ArcGIS.Mobile.FeatureCaching.FeatureDataTable

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.