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

Deletes all features that match the given filter.

.NET Syntax
virtual int DeleteFeatures(MgResourceIdentifier resource, string className, string filter);
Java Syntax
virtual int DeleteFeatures(MgResourceIdentifier resource, String className, String filter);
PHP Syntax
virtual int DeleteFeatures(MgResourceIdentifier resource, String className, String filter);
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
Returns:
Returns the number of features deleted by this operation
Exceptions:
MgFeatureServiceException
MgInvalidArgumentException
MgInvalidOperationException
MgFdoException
Since:
3.0