How Do I Delete a Standalone Feature Class

845
0
03-09-2012 07:24 AM
DougMarquardt
New Contributor
Using VS2010 and VB.Net.

I can create a standalone feature class no problem using IFeatureWorkspace.CreateFeatureClass.
Now when I'm done with this class I want to delete it from the geodatbase entirely.
I check the CanDelete property of the layer, but it always returns false, i.e.

            Dim fl As FeatureLayerClass = Me._Layer
            If fl IsNot Nothing Then
                If fl.CanDelete Then
                    fl.Delete()
                End If
                fl.Disconnect()
            End If


Obviously I'm missing something here... can anyone point me in the right direction?

TIA,

Doug.
0 Kudos
0 Replies