This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Geoprocessing > ESRI.ArcGIS.Geoprocessing > Interfaces > IG > IGPUtilities Interface > IGPUtilities.OpenFeatureClassFromString Method (ArcObjects .NET 10.4 SDK) |
Opens a feature class from the given catalog path.
[Visual Basic .NET] Public Function OpenFeatureClassFromString ( _ ByVal catalogPath As String _ ) As IFeatureClass
[C#] public IFeatureClass OpenFeatureClassFromString ( string catalogPath );
[C++]
HRESULT OpenFeatureClassFromString(
BSTR catalogPath,
IFeatureClass** ppFC
);
[C++]
Parameters catalogPath [in] catalogPath is a parameter of type BSTR ppFC [out, retval]
ppFC is a parameter of type IFeatureClass
The OpenFeatureClassFromString method creates a FeatureClass object by simply taking in the ArcCatalog path of a feature class as a string.