Sunday, 27 January 2013

• You need to log an entry in a custom event log when the EmailSenderService service is started and stopped. What should you do? (Each correct answer presents part of the solution. Choose three.)



A. Add the following code segment to line PO22 of the Poller.vb file:
EventLog.WriteEntry("EmailSenderService", "Stopped", EventLogEntryType.Information)
B. Add the following code segment to line PO12 of the Poller.vb file:
EventLog.WriteEntry("EmailSenderService", "Started", EventLogEntryType.Information)
C. Add the following code segment to line PO22 of the Poller.vb file:
EventLog.WriteEntry("Application", "EmailSenderService:Stopped",
EventLogEntryType.Information)
D. Add the following code segment to line ES10 of the EmailSenderService.vb file:
EventLog.CreateEventSource("Application", "EmailSenderService")
E. Add the following code segment to line PO12 of the Poller.vb file:
EventLog.WriteEntry("Application", "EmailSenderService:Started",
EventLogEntryType.Information)
F. Add the following code segment to line ES10 of the EmailSenderService.vb file:
EventLog.CreateEventSource("EmailSenderService", "EmailLog")

No comments:

Post a Comment