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


IFeatureWorkspaceManage.DeleteByName Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

IFeatureWorkspaceManage.DeleteByName Method

Deletes an object by it's name.

[Visual Basic .NET]
Public Sub DeleteByName ( _
    ByVal aName As IDatasetName _
)
[C#]
public void DeleteByName (
    IDatasetName aName
);
[C++]
HRESULT DeleteByName(
  IDatasetName* aName
);
[C++]

Parameters aName [in]
aName is a parameter of type IDatasetName

Product Availability

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

Remarks

The DeleteByName method can be used to delete a dataset given its name object. It can be useful when cleaning up partially loaded datasets that cannot be instantiated because of incomplete information. It is made use of by ArcCatalog�s delete command. Note that IDataset::Delete is directly available as a method on instantiated datasets.

The DeleteByName method will fail when called on feature classes that participate in geometric networks or topologies. In these cases, the containing dataset, a Geometric Network or Topology, must be deleted first in order to demote the feature classes from non-simple to simple.

See Also

IFeatureWorkspaceManage Interface