MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual INT32 MgFeatureService::DeleteFeatures ( MgResourceIdentifier resource,
CREFSTRING  className,
CREFSTRING  filter,
MgTransaction trans 
) [pure virtual]

Deletes all features that match the given filter.

.NET Syntax
virtual int DeleteFeatures(MgResourceIdentifier resource, string className, string filter, MgTransaction trans);
Java Syntax
virtual int DeleteFeatures(MgResourceIdentifier resource, String className, String filter, MgTransaction trans);
PHP Syntax
virtual int DeleteFeatures(MgResourceIdentifier resource, String className, String filter, MgTransaction trans);
Parameters:
resource(MgResourceIdentifier) A resource identifier for the feature source.
className(String/string) The name of the feature class on which the delete operation is performed.
filter(String/string) The FDO filter string that detemines what features will be deleted
trans(MgTransaction) The transaction to execute this operation under
Returns:
Returns the number of features deleted by this operation
Exceptions:
MgFeatureServiceException
MgInvalidArgumentException
MgInvalidOperationException
MgFdoException
Since:
3.0