Which code segment should you use?

You are developing an application by using C#. The application will write events to an event log.
You plan to deploy the application to a server.
You create an event source named MySource and a custom log named MyLog on the server.
You need to write events to the custom log.
Which code segment should you use?

You are developing an application by using C#. The application will write events to an event log.
You plan to deploy the application to a server.
You create an event source named MySource and a custom log named MyLog on the server.
You need to write events to the custom log.
Which code segment should you use?

A.
Option A

B.
Option B

C.
Option C

D.
Option D



Leave a Reply 0

Your email address will not be published. Required fields are marked *