A family of Microsoft on-premises document management and storage systems.
Hi @nyacharya,
Per my research, the ListItemVersion.VersionId and FileVersion.Id will return the same value. You could refer to the following document
https://learn.microsoft.com/en-us/previous-versions/office/sharepoint-csom/ee542654(v=office.15)
You could use the code to get sharepoint file version
// Get File using version Id
// NOTE: Every Major check In will be incremented by "512" e.g. version 1.0 will have ID = 512, Version 2.0 will have ID = 1024
//Every Minor check in will be incremented by "1" e.g version 0.1 will have ID = 1 , version 0.2 will have ID = 2
FileVersion oFileVersion = oItem.File.Versions.GetById(512);
clientcontext.Load(oFileVersion);
clientcontext.ExecuteQuery();
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.