ArcGIS Developer Help  (GeoDatabase)    

IDataset.CanDelete Method

True if this dataset can be deleted.

[Visual Basic 6.0]
Function CanDelete As Boolean
[Visual Basic .NET]
Public Function CanDelete ( _
) As Boolean
[C#]
public bool CanDelete (
);
[Java]
public Boolean canDelete (
)
throws
    IOException,
    AutomationException
[C++]
HRESULT CanDelete(
  VARIANT_BOOL* CanDelete
);
[C++]

Parameters

CanDelete [out, retval]

  CanDelete is a parameter of type VARIANT_BOOL

Product Availability

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

Remarks

The Copy, Delete, and Rename methods, as in ArcCatalog, are not available in all circumstances. For example, you may not delete a network feature class nor can you use the Copy method on a Geodatabase feature class.  To copy Geodatabase datasets, including feature classes, geometric networks, topologies, etc, use the IGeoDBDataTransfer interface. You should normally use the CanCopy, CanDelete, and CanRename properties in conjunction with these methods.

See Also

IDataset Interface

 


Feedback Send feedback on this page