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

You create a Windows service named FxListener that performs financial transactions by using files in a drop directory. When a new XML file appears in the drop directory, FxListener opens the file and performs the financial transaction contained within the XML code.You want updates to each XML file to be logged in the Windows application log. A String object named myMessage contains the message to be logged.Which code segment should you use?

2021-12-25

A.EventLog.WriteEntry("FxListener", myMessage)

B.Dim log As New EventLog("Application") log.WriteEntry(myMessage)

C.Dim log As New EventLog("Application")Trace•WriteLine(log, myMessage)

D.Dim log As New EventLog("FxListener") log.Source = "Application"log.WriteEntry(myMessage, EventLogEntryTyp

E.SuccessAudit)

题目答案

试卷相关题目

最新试卷
热门试卷

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

去 App Store 免费下载 iOS 客户端