2010 – Hello, I need to consult a sharepoint list


What I need is to consult a list of sharepoints and bring the information, when I bring the information I do it correctly, what happens is that it does not bring the previous versions, that is, when a record is created it enters version 1 but when it is modified , it changes to version 2, so when I consult it it only brings me version 2 and not the previous one, and what is required is to bring all versions.

I am doing it with SPListItem but I have not found a way to bring the version history