1
在SharePoint用戶可以更新文件。SPFolder.Files是否會返回最新版本的文件?
SPFolder.Files是否會返回最新版本的文件,如SharePoint UI會或每個文件的版本1.0?
SPSite oSiteCollection = SPContext.Current.Site;
SPWebCollection collWebsites = oSiteCollection.AllWebs;
foreach (SPWeb oWebsite in collWebsites)
{
SPFolderCollection collFolders = oWebsite.Folders;
foreach (SPFolder oFolder in collFolders)
{
SPFileCollection collFiles = oFolder.Files;