ArcObjects Library Reference (GeoDatabase)  

IFeatureClass Interface

Provides access to members that control the behavior and properties of a feature class.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

When To Use

The IFeatureClass interface is the main interface for getting and setting properties of a feature class. For example, use the IFeatureClass interface to get the type of feature class, get a count of features that satisfy some query, or create a new feature in the feature class. The IFeatureClass interface inherits from the IObjectClass interface.

Members

Description
Method AddField Adds a field to this object class.
Method AddIndex Adds an index to this object class.
Read-only property AliasName The alias name of the object class.
Read-only property AreaField The geometry area field.
Read-only property CLSID The GUID for the COM Class (CoClass) corresponding to instances of this object class.
Method CreateFeature Create a new feature, with a system assigned object ID and null property values.
Method CreateFeatureBuffer Create a feature buffer that can be used with an insert cursor.
Method DeleteField Deletes a field from this object class.
Method DeleteIndex Deletes an index from this object class.
Read-only property EXTCLSID The GUID for the COM Class (CoClass) corresponding to the class extension for this object class.
Read-only property Extension The extension for this object class.
Read-only property ExtensionProperties The extension properties for this object class.
Read-only property FeatureClassID The unique ID for the Feature Class.
Method FeatureCount The number of features selected by the specified query.
Read-only property FeatureDataset The feature dataset that contains the feature class.
Read-only property FeatureType The type of features in this feature class.
Read-only property Fields The fields collection for this object class.
Method FindField The index of the field with the specified name.
Method GetFeature Get the feature with the specified object ID.
Method GetFeatures Get a cursor of Rows given a set of object ids.
Read-only property HasOID Indicates if the class has an object identity (OID) field.
Read-only property Indexes The indexes collection for this object class.
Method Insert Returns a cursor that can be used to insert new features.
Read-only property LengthField The geometry length field.
Read-only property ObjectClassID The unique ID for the object class.
Read-only property OIDFieldName The name of the field corresponding to the OID.
Read-only property RelationshipClasses The relationship classes in which this object class participates in for the specified role.
Method Search Returns an object cursor that can be used to fetch feature objects selected by the specified query.
Method Select Returns a selection That contains the object ids selected by the specified query.
Read-only property ShapeFieldName The name of the default sShape field.
Read-only property ShapeType The type of the default Shape for the features in this feature class.
Method Update Returns a cursor that can be used to update features selected by the specified query.

Inherited Interfaces

Interfaces Description
IObjectClass Provides access to members that return information about an object class.
IClass Provides access to members that return information about and manage the class.

CoClasses that implement IFeatureClass

CoClasses and Classes Description
FeatureClass ESRI Feature Class object.
NAClass (esriNetworkAnalyst) Holds features used as input and generated as output during network analysis.
RasterCatalog A collection of raster datasets in a Geodatabase table.
RelQueryTable An object that joins two datasets based on common data values.
RouteEventSource (esriLocation) Route event source object.
SchematicInMemoryFeatureClass (esriSchematic) Schematic in memory feature class object.
TemporalFeatureClass (esriTrackingAnalyst) Controls settings for the temporal feature class.
TemporalRecordSet (esriTrackingAnalyst) Defines the COM coclass for the TemporalRecordSet COM object.
XYEventSource XY event source object.

Remarks

Feature classes can be created using the IFeatureWorkspace.CreateFeatureClass and IFeatureDataset.CreateFeatureClass methods.

See Also

IClass Interface | IObjectClass Interface | INetworkClass Interface

.NET Snippets

Zoom to Selected Globe Features | Create DistanceOp Cost Back Link Raster | Get FeatureClass of Selected Feature Layer in Contents View | Create DistanceOp Cost Distance Raster | Create DistanceOp EucDistanceFull Direction Raster | Get FeatureClass From Shapefile On Disk | Get All Features from Point Search in GeoFeatureLayer | Load Tactical Graphic Layer | Create Grid From Feature Class | Create DistanceOp EucAllocation Raster | Load Force Element Layer | Create DistanceOp Cost Path Raster | Create FeatureClass | Create DistanceOp CostDistanceFull Cost Allocation Raster | Create Animation from Path | Create DistanceOp CostDistanceFull Least Accumulative Cost Raster | Create DistanceOp EucDirection Raster | Add Shapefile Using OpenFileDialog | Create DistanceOp EucDistanceFull Distance Raster | Perform Spatial Query | Create DistanceOp CostDistanceFull Backlink Raster | Create DistanceOp Cost Allocation Raster | Create DistanceOp EucDistanceFull Allocation Raster | Set Data Source | Get First Feature from Point Search in GeoFeatureLayer |

.NET Samples

3D dynamic element tracking (Code Files: TrackDynamicObject) | Add a custom menu created in .NET to ArcGIS Desktop (Code Files: AddShapefile) | Add a traversal result to the map (Code Files: AddTraversalResultsToMap) | Add and symbolize a historical temporal layer in ArcMap (Code Files: AddTemporalLayerButton) | Adding a real-time feed to ArcMap (Code Files: AddTrackingServerLayerButton) | ArcGIS GPConsole (Code Files: Program) | Buffer snap agent (Code Files: BufferSnap) | Calculate area geoprocessing function tool (Code Files: CalculateAreaFunction) | Closest facility application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: ClosestFacility_GISServerAPIClass) | Closest facility solver (Code Files: frmClosestFacilitySolver) | Convert part to feature command (Code Files: ConvertPart) | Create camera flyby from path (Code Files: frmCameraPath) | Curve conversion add-in (Code Files: CurveConversionDockWin) | Cut polygons without selection edit task (Code Files: CutPolygonsWithoutSelectionEditTask) | Displaying MOLE symbology with the GlobeControl (Code Files: MainForm) | Editing using a custom form (Code Files: EditorForm) | Executing geoprocessing tools in the background (Code Files: RunGPForm) | Extending the replication synchronization process (Code Files: RasterSyncWorkspaceExtension) | Implementing an XML builder external component (Code Files: XMLDocImpl) | Implementing associations between GIS features and schematic features (Code Files: ElementFeatureAssociation) | Implementing extended criteria for some predefined schematic rules (Code Files: CollapseRelatedElts) | Import signposts (Code Files: ImportDynamapSignsFunction ImportMultiNetSignsFunction ImportNavStreetsSignsFunction SignpostUtilities) | Location-allocation solver (Code Files: frmLocationAllocationSolver) | Multivariate renderer (Code Files: MultivariateRenderer) | Network Analyst barrier location editor (Code Files: EditorForm NABarrierLocationEditor) | Network Analyst Engine application (Code Files: frmLoadLocations) | Origin-destination cost matrix solver (Code Files: frmODCostMatrixSolver) | Play back tracking data (Code Files: PlaybackDataButton) | Points along line construction tool (Code Files: PointsAlongLineForm) | Retrieve a color ramp from the SymbologyControl (Code Files: SymbolForm) | Route application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: Route_GISServerAPIClass) | Route layer (Code Files: Program) | RSS weather GraphicTracker (Code Files: RSSWeather) | RSS weather layer (Code Files: AddWeatherItemTool RSSWeatherLayerClass) | Selection restriction evaluator (Code Files: SelectionRestrictionEvaluator) | Server spatial query COM utility (Code Files: VegTool_VBNet VegUtils_VBNet) | Server spatial query server object extension (Code Files: Extension) | Service area application using the NAServer extension in ArcGIS Server via a GIS server (Code Files: ServiceArea_GISServerAPIClass) | Service area solver (Code Files: frmServiceAreaSolver) | Simple point plug-in data source (Code Files: OpenSimplePointDlg) | StreetMap routing (Code Files: RoutingForm) | Tabbed feature inspector (Code Files: AddEXTCLSID AttachTabbedInspectorExtensionCommand) | Using the traversal result to select source features (Code Files: SelectFeaturesTool) | Vehicle routing problem solver (Code Files: frmVRPSolver) |

.NET Related Topics

3DAnalyst | Accessing a raster dataset in a raster catalog | Adding a custom menu created in .NET to ArcGIS Desktop | Adding a plug-in data source programmatically | Adding and working with connectivity rules in a geometric network | Adjusting feature locations with spatial adjustment | Assigning domains to fields | Cartographic representations | Checking for topology error features in a geodatabase topology | Converting between high- and low-precision spatial references | Converting labels to geodatabase annotation for a single layer | Converting labels to geodatabase annotation for an entire map | Converting labels to map annotation for a single layer | Converting simple data | Creating a topology in the geodatabase | Creating an address locator | Creating annotation and dimension feature classes | Creating class extensions | Creating feature classes | Creating features | Creating fields | Creating indexes | Creating subtypes | DataSourcesRaster | DefenseSolutions | Executing spatial queries | Geodatabase | Geodatabase API best practices | How to access a difference surface when intersecting TINs and terrains | How to access a layer's underlying data | How to access source features referenced by a network dataset | How to access the features in an in-memory output layer using IFeatureCursor | How to add point IDs to a polyline | How to animate the camera along a path (line feature) in globe | How to connect to ArcGIS Tracking Server | How to convert coordinate arrays | How to create a dynamic geocoded feature class | How to create a union of several polygons | How to geocode a table of addresses | How to get CAD transformation properties (from, to, angle, and scale) | How to get the points of a two-point CAD transformation | How to load a raster dataset to the raster field in a feature class | How to load data into a network analysis problem | How to merge conflicting geometries during a reconcile | How to rematch a geocoded feature class | How to return CAD drawing layer properties | How to return CAD transformation settings | How to set CAD transformation properties (from, to, angle, and scale) | How to set the points of a two-point CAD transformation | How to snap a point to a coordinate grid | How to standardize an address | How to work with the snap environment | How to zoom to selected features in globe | Leveraging the schema cache | Listening to object class events | Listing fields | Managing application state | Managing edit sessions and edit operations | Map services | Opening datasets | Performing a spatial analysis operation using objects | Performing basic map functions | Programming with server objects | Releasing COM references | Server object extensions (SOE) | Updating attributes of existing features | Updating geometry of existing features | Using ArcObjects as tool input | Using feature templates | Utility COM objects | Validating features | Working with fields | Working with helper objects | Working with indexes | Working with the editor snap environment |