This document is archived and information here might be outdated.  Recommended version.


IFeatureLayer.FeatureClass Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

IFeatureLayer.FeatureClass Property

The layer's feature class.

[Visual Basic .NET]
Public Property FeatureClass As IFeatureClass
[C#]
public IFeatureClass FeatureClass {get; set;}
[C++]
HRESULT get_FeatureClass(
  IFeatureClass** fclass
);
[C++]
HRESULT putref_FeatureClass(
  IFeatureClass* fclass
);
[C++]

Parameters fclass [out, retval]
fclass is a parameter of type IFeatureClass** fclass [in]
fclass is a parameter of type IFeatureClass*

Product Availability

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

Description

The FeatureClass data source for the layer.

See Also

IFeatureLayer Interface

.NET Snippets

Set Data Source | Create Animation from Path | Add Shapefile Using OpenFileDialog | Get FeatureClass of Selected Feature Layer in Contents View | Zoom to Selected Globe Features | Add Tracking Layer To Map

.NET Samples

Add a custom menu created in .NET to ArcGIS for Desktop (Code Files: AddShapefile) | Cut polygons without selection edit task (Code Files: EditingForm) | Editing using a custom form (Code Files: EditorForm) | Custom reshape polyline edit task (Code Files: EditingForm) | ArcGIS Network Analyst extension Engine application (Code Files: frmLoadLocations) | 3D dynamic element tracking (Code Files: TrackDynamicObject) | Points along line construction tool (Code Files: PointsAlongLineForm) | Managing snap agents (Code Files: EditingForm) | Adding a real-time feed to ArcMap (Code Files: AddTrackingServerLayerButton) | Automate ArcGIS for Desktop applications (Code Files: Form1) | Simple point plug-in data source (Code Files: OpenSimplePointDlg) | Executing geoprocessing tools in the background (Code Files: RunGPForm) | Change layer rendering using the SymbologyControl (Code Files: LayerRendering) | Custom vertex editing commands (Code Files: EditingForm) | Add a traversal result to the map (Code Files: AddTraversalResultsToMap) | Buffer snap agent (Code Files: BufferSnap EditingForm) | Implementing a property page for an ArcGIS Engine application (Code Files: SymbolSelectorPropPage) | Multivariate renderer (Code Files: PropPageForm) | Create camera flyby from path (Code Files: frmCameraPath) | Retrieve a color ramp from the SymbologyControl (Code Files: ColorRamps SymbolForm) | Edit event listener (Code Files: EditingForm)

.NET Related Topics

3DAnalyst | Adding a custom menu created in .NET to ArcGIS for Desktop | Adding a plug-in data source programmatically | Automating ArcGIS for Desktop applications | 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 | Creating annotation and dimension feature classes | How to access a layer's underlying data | How to add different types of layers to a map | How to animate the camera along a path (line feature) in globe | How to connect to ArcGIS Tracking Server | How to create a selection set using a scatter plot graph | How to create an edit session | How to create graph series with different color types | How to get CAD transformation properties (from, to, angle, and scale) | How to get the points of a two-point CAD transformation | 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 zoom to selected features in globe | Location | Using feature templates