MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
virtual MgTransaction* MgLayer::BeginTransaction ( ) [virtual]

Starts a transaction on the this layer. The FDO provider indicated by the layer's Feature Source must support transactions.

Remarks:
The XML returned by MgFeatureService::GetCapabilities says whether a provider supports transactions. See Provider Capabilities .
.NET Syntax
virtual MgTransaction BeginTransaction();
Java Syntax
virtual MgTransaction BeginTransaction();
PHP Syntax
virtual MgTransaction BeginTransaction();
Returns:
Returns an MgTransaction instance (or NULL).
Exceptions:
MgFeatureServiceException
MgInvalidArgumentException
MgInvalidOperationException
MgFdoException
Since:
3.0

Reimplemented from MgLayerBase.