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

You create a serviced component named OrderProcessor. Order- Processor implements the IOrderlnit interface. The component and the interface contain the following code segments:<Guidr0B6ABB29-4 3D6-4 0a6-B5F2-83A4 57D0 62ACn)> cinterfaceType(ComlnterfaceType.InterfacelsDual)> Public Interface IOrderlnit 'IOrderlnit methods go here End InterfacePublic Class OrderProcessor Inherits ServicedComponent Implements IOrderlnit 'OrderProcessor methods go here.End ClassYou discover that every time you rebuild OrderProcessor, existing unmanaged client code fails. The HRESULT for the exception is 0x80040154. The exception includes the following message: "Class not registered." You need to resolve this problem.What should you do?

2021-12-25

A.Add a Guid attribute to the OrderProcessor class

B.Add a Comlmport attribute to the IOrderlnit interface

C.To the OrderProcessor class, add the following attribute:

D.To the end of every method, add the following line of code: Marshal.ReleaseComObj ect(Me)

题目答案

试卷相关题目

最新试卷
热门试卷

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

去 App Store 免费下载 iOS 客户端