Question 76

1.7.2 Question

Multiple Choice

When you are creating a custom handler, what is the parameter being passed into the ProcessRequest method?

  • A. object, EventArgs
  • B. HttpApplication
  • C. HttpContext
  • D. Object


A. Incorrect: object, EventArgs are the parameters used for the event handlers thrown during the startup process. The event handlers are assigned in the Init method.
B. Incorrect: HttpApplication is the parameter used in the Init method.
C. Correct: The ProcessRequest method takes the HttpContext parameter.
D. Incorrect: There are no default methods that just accept an object parameter.