AutoCAD Map 3D 2009 Geospatial Platform Reference

AutoCAD Map 3D Geospatial Platform API

virtual bool MgFeatureService::SetLongTransaction ( MgResourceIdentifier featureSourceId,
CREFSTRING  longTransactionName 
) [pure virtual]

Set the active long transaction name for a feature source.

Note:
This is not valid with AutoCAD Map 3D. It works with MapGuide only.
Remarks:
The long transaction name is associated with the caller's session. If no session is set then the method throws an MgSessionNotFoundException.
.NET Syntax
virtual bool SetLongTransaction(MgResourceIdentifier resource, string longTransactionName);
Java Syntax
virtual boolean SetLongTransaction(MgResourceIdentifier resource, String longTransactionName);
PHP Syntax
virtual bool SetLongTransaction(MgResourceIdentifier resource, string longTransactionName);

Parameters:
featureSourceId (MgResourceIdentifier) A resource identifier identifying a feature source in the repository.
longTransactionName (String/string) The long transaction name to set.
Returns:
Returns true if the name was successfully set; otherwise returns false.
Exceptions:
MgNullArgumentException 
MgInvalidResourceTypeException 
MgSessionNotFoundException