根据以下链接:
http://msdn.microsoft.com/en-us/library/system.enterpriseservices.contextutil.aspx
以下选项之间是否存在差异:
仅调用:ContextUtil.SetComplete()
" 在 COM+ 上下文中将一致位和完成位设置为真"
调用两者:
ContextUtil.DeactivateOnReturn = True
" 在 COM+ 上下文中设置完成位"
ContextUtil.MyTransactionVote = TransactionVote.Commit
“当 MyTransactionVote 设置为 Commit 时,COM+ 一致位设置为 true,并且 COM+ 上下文投票提交事务”