I am confused on when to use SPItem vs SPListItem—specifically when grabbing items from a document library. What are the benefits of each and downsides of each.
SPItem is just an abstract class that SPListItem inherits from. From MSDN's documentation:
You do not want to work with SPItem because it is an abstract class which cannot be instantiated. Abstract classes are very similar to Interfaces in OOP. Give this article a read to get a better understanding of Abstract Classes.
Still, properties can still be accessed from that class.
For example, if you pass an
Even though the actual object passed is an