ESRI.ArcGIS.E2API Feedback via the User Forum
FeatureSet Class
See Also  Members   Example 
ESRI.ArcGIS.E2API Namespace : FeatureSet Class


Represents a subset of features. A FeatureSet can be used to enumerate through features in turn and perform actions on the set of features.

Object Model


Syntax

Visual Basic (Declaration) 
<ComVisibleAttribute(False)>
Public NotInheritable Class FeatureSet 
Visual Basic (Usage)Copy Code
Dim instance As FeatureSet
C# 
[ComVisibleAttribute(false)]
public sealed class FeatureSet 

Example

An example of using a FeatureSet to count the features in a LocalVectorLayer. This example assumes there is a variable MyLocalVectorLayer pointing to a LocalVectorLayer (e.g. Shapefile).
C#Copy Code
ESRI.ArcGIS.E2API.FeatureSet MyFeatureSet = MyLocalVectorLayer.QueryFeatures(null, 
                                             string.Empty,esriE2SpatialRelationship.Undefined); 
 
_taskUI.E2.MessageBox( MyLocalVectorLayer.Dataset + " has " + MyFeatureSet.FeatureCount + " features.", 
                                                      "Message Box",esriE2MessageBoxType.Information);
Visual BasicCopy Code
Dim MyFeatureSet As ESRI.ArcGIS.E2API.FeatureSet = MyLocalVectorLayer.QueryFeatures(Nothing, _
                                                    String.Empty,esriE2SpatialRelationship.Undefined)

_taskUI.E2.MessageBox(MyLocalVectorLayer.Dataset + " has " + MyFeatureSet.FeatureCount + " features.", _
                                                     "Message Box",esriE2MessageBoxType.Information)

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.E2API.FeatureSet

Platforms

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

Version Information

This class was added to the E2API at version 1.0.0.348.

See Also