DRAG DROP
You are developing an ASP.NET web application that uses health monitoring to log events to the Windows
Event Log. The application contains a custom event that is defined in the following code segment. Line
numbers are included for reference only.
You need to ensure that the event is correctly added to the Windows event log.
How should you complete the relevant code? To answer, drag the appropriate code segment to the correct
location or locations. Each code segment may be used once, more than once, or not at all. You may need to
drag the split bar between panes or scroll to view content.
Select and Place:
Explanation:
ApplicationDetailCodeBase: Identifies the offset for the applicationdetail event codes. This field is constant.
WebRequestEvent.Raise()
Raises an event by notifying any configured provider that the event has occurred. (Inherited from
WebBaseEvent.)
https://msdn.microsoft.com/en-us/library/system.web.management.webrequestevent(v=vs.110).aspx
Not 100% sure but I believe it should be 1 and 5.
https://msdn.microsoft.com/en-us/library/system.web.management.webeventcodes(v=vs.110).aspx
“You can create your own custom event code by choosing code values above WebExtendedBase.”
If you use the other options, by adding 30 you’re probably using an already existent code and giving a different meaning to your log.
I agree
Agree too