microsoft upgrade mcad skills to mcpd web developer by using the microsoft net framework vb and csharp 70-551题库.pdfVIP

  • 3
  • 0
  • 约1.36万字
  • 约 10页
  • 2016-03-12 发布于山西
  • 举报

microsoft upgrade mcad skills to mcpd web developer by using the microsoft net framework vb and csharp 70-551题库.pdf

microsoft upgrade mcad skills to mcpd web developer by using the microsoft net framework vb and csharp 70-551题库

Microsoft 70-551 70-551 UPGRADE: MCAD Skills to MCPD Web Developer by Using the Microsoft .NET Framework Practice Test Version 2.4 买题库 QQ:860424807 Microsoft 70-551: Practice Exam QUESTION NO: 1 You are testing a newly developed method named PersistToDB. This method accepts a parameter of type EventLogEntry. This method does not return a value. You need to create a code segment that helps you to test the method. The code segment must read entries from the application log of local computers and then pass the entries on to the PersistToDB method. The code block must pass only events of type Error or Warning from the source MySource to the PersistToDB method. Which code segment should you use? A. Dim myLog As New Eventl_og(Application,.) For Each entry As EventLogEntry In myLog.Entries If entry.Source = MySource Then PersistToDB(entry) End If Next B. Dim myLog as New EventLog(Application,.) myLog.Source = MySource For Each entry As EventLogEntry In myLog.Entries If entry. Entry Type = (EventLogEntry Type. Error And _ EventLogEntry Type.Warning) Then PersistToDB(entry) End If Next C. Dim myLog as New EventLog(Application,.) For Each entry As EventLogEntry In myLog.Entries If entry.Source = MySource Then If (entry. Entry Type = EventLogEntry Type.Error) Or_ (entry .Entry Type = EventLogEntry Type.Warning) Then PersistToDB(entry) End If End If Next D. Dim myLog as New EventLogCApplication,.) myLog.Source = MySource For Each entry As EventLogEntry In myLog.Entries If (entry. Entry Type = EventLogEntry Type. Error) Or_ (entry. Entry Type = EventLogEntry Type.Warning) Then PersistToDB(entry) End If Next Answer: C 买题库 QQ:860424807 2 Microsoft 70-551: Practice Exam Explanation: It is necessary to create a new A

文档评论(0)

1亿VIP精品文档

相关文档