Sitecore 10 .NET Developer Certification — Question 24
When using Sitecore MVC, which static class contains information about any current HTTP request?
Answer options
- A. Sitecore.HttpContext. Request
- B. Sitecore.Context
- C. Sitecore.Request
- D. Sitecore.HttpContext
Correct answer: B
Explanation
The correct answer is B, Sitecore.Context, as it provides access to the current context, including HTTP request details. Options A and D reference the HttpContext but do not specifically provide the necessary information about the current request. Option C, Sitecore.Request, is not a valid static class in this context.