Question:You are testing a newly developed method named PersistToDB. The method accepts a parameter of type EventLogEntry and does not return a value. The current test function is shown in the following code segment: 01 Public Sub TestPersistToDB() 03 For Each entry As EventLogEntry In myLog.Entries 05 If entry.Source = "MySource" Then 07 End If 09 Next "A Composite Solution With Just One Click" - Certification Guaranteed 199 Microsoft 70-536 Exam 11 End Sub The test function must read entries from the application log of local computers and then pass the entries to the PersistToDB() method. The test function implementation must pass only events of type Error or Warning from a source named MySource to the PersistToDB() method. You need to complete the code segment. Which code segments should you add to line 02 and between lines 05 and 07 in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order. 

A <p>Dim mylog As EventLog = New EventLog("Application",".")</p> <p>�</p> <p>If entry.EntryType = EventLogEntryType.Error OrElse</p> <p>entry.EntryType = EventLogEntryType.Warning Then</p> <p>�</p> <p>PersistToDB(entry)</p> 

B <p>Dim mylog As EventLog = New EventLog("Application",".")</p> <p>�PersistToDB(entry)</p> <p>If entry.EntryType = EventLogEntryType.Error OrElse</p> <p>entry.EntryType = EventLogEntryType.Warning Then</p> <p>�</p> 

C <p>Dim mylog As EventLog = New EventLog("Application",".")</p> <p>�</p> <p>If entry.EntryType = EventLogEntryType.Error OrElse<br />PersistToDB(entry)</p> <p>entry.EntryType = EventLogEntryType.Warning Then</p> <p>�</p> 

D <p>Dim mylog As EventLog = New EventLog("Application",".")</p> <p>�</p> <p>If entry.EntryType = EventLogEntryType.Error OrElse</p> <p>entry.EntryType = EventLogEntryType.Warning Then</p> 

+ Answer
+ Report
Total Preview: 1186

Copyright © 2024. Powered by Intellect Software Ltd