Article ID: 250865 - Last Review: December 5, 2007 - Revision: 1.3 INFO: CreateObject and CreateInstance Have the Same Effect in COM+
This article was previously published under Q250865 SUMMARY
In Microsoft Transaction Server (MTS), you must use ObjectContext.CreateInstance in your root object to create secondary objects for the transaction to flow. In COM+ this still works, but it is no longer necessary to do it. In COM+, CreateObject subsumes the functionality of ObjectContext.CreateInstance. The object created participates in the caller's activity.
In COM+, you can use the standard CreateObject function in Microsoft Visual Basic to flow a transaction to secondary objects as appropriate. The following example shows how the root object (clsRoot) creates the secondary object (clsSec) from within a transactional object. | Other Resources Other Support Sites
CommunityArticle Translations |






Windows Live
Facebook
Twitter
Linkedin
Digg it
Yahoo
Delicious
StumbleUpon
Yammer
Reddit
Technorati
FriendFeed
Email
Back to the top