MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual MgPropertyCollection* MgLayer::UpdateFeatures ( MgFeatureCommandCollection commands,
MgTransaction transaction 
) [virtual]

Executes the MgDeleteFeatures, MgInsertFeatures, MgUpdateFeatures, MgLockFeatures or MgUnlockFeatures commands contained in the given MgFeatureCommandCollection object.

Remarks:
The XML returned by MgFeatureService::GetCapabilities says whether a provider supports SQL commands. See Provider Capabilities .
.NET Syntax
virtual MgPropertyCollection UpdateFeatures(MgFeatureCommandCollection commands);
Java Syntax
virtual MgPropertyCollection UpdateFeatures(MgFeatureCommandCollection commands);
PHP Syntax
virtual MgPropertyCollection UpdateFeatures(MgFeatureCommandCollection commands);
Parameters:
commands(MgFeatureCommandCollection) A collection of feature commands to be executed.
transaction(MgTransaction) An optional transaction to execute this operation under
Returns:
Returns an MgPropertyCollection object. Each property in the collection corresponds to a command in the MgFeatureCommandCollection argument. The property name is the index of the command in the feature command collection.
Exceptions:
MgFeatureServiceException
MgInvalidArgumentException
MgInvalidOperationException
MgFdoException
Since:
3.0

Reimplemented from MgLayerBase.