Obtains a reference to the ObjectContext that's associated with the current MTS object.
To use the GetObjectContext function, you must set a reference to Microsoft Transaction Server Type Library (mtxas.dll).
Syntax
Set objectcontext = GetObjectContext ( )
Parameters
objectcontext
An object variable that evaluates to the ObjectContext belonging to the current object.
Remarks
An object should never attempt to pass its ObjectContext reference to another object. If you pass an ObjectContext reference to another object, it will no longer be a valid reference.
When an object obtains a reference to its ObjectContext, it must release the ObjectContext object when it's finished with it.
See Also
Building Scalable Components, Context Objects, CreateInstance Method