Access the context item

Current version: 10.1

In presentation and other components, processing often begins with the context item. You can access the context item using the Sitecore.Context.Item property. For example, to access the context item:

RequestResponse
Sitecore.Data.Items.Item contextItem = Sitecore.Context.Item ; 

Do you have some feedback for us?

If you have suggestions for improving this article,