Syntax
- Database.GetItem(ID itemId)
- Database.GetItem(ID itemId, Language language)
- Database.GetItem(ID itemId, Language language, Version version)
- Database.GetItem(string path)
- Database.GetItem(string path, Language language)
- Database.GetItem(string path, Language language, Version version)
Most of the above examples make use of Sitecore.Context.Database
to fetch items. Keep in mind that most Sitecore implementations have multiple content databases, so using the correct database to fetch your item is important.