![]() | ![]() | Programming Guide |
Creates an object under MTS control
int sm_mts_CreateInstance( char *name );
name- Name of object to be created.
MTS
Server
- · An object id suitable for making
sm_obj_callcalls.
sm_mts_CreateInstancecan be used in place ofsm_obj_createto create an object that inherits the transaction context from the calling service object.For more details see CreateInstance method under IObjectContextMethods in the MTS documentation.
Note that this function requires an object context and therefore cannot be used in the constructor of a service component.
![]()
![]()
![]()
![]()