Hi,
I have a Document Library which has "Create major and minor (draft) versions" enabled.
Now, from my C# application I need to fetch the latest major version of a document from that library.
What is the proper way to do this?
As of right now, I do the following:
return sourceFolder.Files["documentName.docx"]; // sourceFolder is a SPFolder object
Now, I don't trust that this will always give me the latest published major version of the document. Or am I wrong? If I'm wrong, how should I do this?
Thanks!