微软MCAD 70-310 实战百题
题目内容

You create a collection of serviced components that performs bank transfers. All the components are marked with the Transaction (TransactionOption.Required) attribute. All the methods in the components are marked with the AutoComplete () attribute.You discover that incorrect balance amounts are being transferred. You decide to debug the components. During debugging, a System. Runtime.InteropServices.COMException is thrown. The HRESULT for the exception is Ox8004EOO2. The exception includes the following message: "The root transaction wanted to commit but transaction aborted."You find that this exception occurs only during the debugging session, and not when the components run outside of the debugger. This exception is preventing you from continuing to debug the components . You need to resolve this problem.What should you do?

2021-12-25

A.Remove the AutoComplete attribute from each method.Within each method implementation, add calls to the Con- textUtil.SetComplete() and ContextUtil.SetAbort() methods

B.Remove the AutoComplete attribute from each method.Within each method implementation, add calls to the ContextUtil .MyTransactionVote and ContextUtil, DeactivateOn- Return properties

C.Increase the transaction timeout in the Component Services tool by using the Properties dialog box for My Computer

D.Within each method implementation, add calls to the Con- textUtil.SetComplete() and ContextUtil.SetAbort() methodsB.Remove the AutoComplete attribute from each method.Within each method implementation, add calls to the ContextUtil .MyTransactionVote and ContextUtil, DeactivateOn- Return propertiesC.Increase the transaction timeout in the Component Services tool by using the Properties dialog box for My ComputerD.Replace each method implementation with the following segment:Try'Existing method body goes her

E.FinallyContextUtil.SetComplete ()End Try

题目答案

试卷相关题目

最新试卷
热门试卷

长理培训客户端 资讯,试题,视频一手掌握

去 App Store 免费下载 iOS 客户端