Tag Info

New answers tagged

0

Instead of using SPFile object use the SPListItem in foreach loop. And within the loop we can use the File property of SPListItem to get the SPFile object. Try the below code... foreach (SPListItem item in items){ SPFile file = item.File; if(docmanager.getFileExtension(item) == ".pdf"){ if (file.LockId != null){ ...


1

SPListItemCollection is a collection of SPListItem. Get File object from SPListItem. Example: foreach (SPListItem item in items) { SPFile file = item.File; }



Top 50 recent answers are included