Opens an existing feature class.
[Visual Basic 6.0] Function OpenFeatureClass(
ByVal Name As String _
) As IFeatureClass
[Visual Basic .NET] Public Function OpenFeatureClass ( _ ByVal Name As String _ ) As IFeatureClass
[C#] public IFeatureClass OpenFeatureClass ( string Name );
[Java] public IFeatureClass openFeatureClass ( String Name ) throws IOException, AutomationException
[C++] HRESULT OpenFeatureClass( BSTR Name, IFeatureClass** ppFeatureClass );
Parameters
Name [in]
Name is a parameter of type BSTR
ppFeatureClass [out, retval]
ppFeatureClass is a parameter of type IFeatureClass
The OpenFeatureClass method can be used to open any existing feature class in the workspace given its fully qualified name. Note that every feature class in a geodatabase has a unique fully qualified name, and the OpenFeatureClass method can be used to directly open FeatureClasses that are part of a FeatureDataset (the FeatureDataset name does not need to be specified).
Use the IDatabaseConnectionInfo interface to determine the User and Database (if applicable). ISQLSyntax::QualifyTableName can be used to determine the fully qualified name for a feature class. Use the NameExists method on the IWorkspace2 interface to determine if a feature class with the appropriate name exists in the geodatabase.
Opening a feature class that participates in a topology or geometric network will also open all other feature classes participating in the topology or geometric network in memory.