标签:oid har for doc enum sha rate epo reac
/// <summary> /// 获取取子文件下所有文件 /// </summary> /// <param name="web"></param> /// <param name="folders"></param> private void EnumerateFolders(SPWeb web, SPFolderCollection folders) { foreach (SPFolder subFolder in folders)//获取文件夹中的文件 { SPFileCollection subFiles = subFolder.Files; foreach (SPFile file in subFiles) { AddItemToDocFileList(file, web, subFolder); } SPFolderCollection subFolders = subFolder.SubFolders;//获取文件夹中的子文件夹 EnumerateFolders(web, subFolders); } }
C#遍历SharePoint文档库下所有文档包括文档库中子文件夹下所有文档
标签:oid har for doc enum sha rate epo reac
原文地址:https://www.cnblogs.com/sayshap/p/10496455.html