声明方式
SPQuey query =new SPQuery();
query.ViewAttributes = "Scope='Recursive'";
范围的详细介绍
Default -- Show only the files and subfolders of a specific folder.
FilesOnly--Show only the files of a specific folder.
Recursive -- Show all files of all folders.?
RecursiveAll -- Show all files and all subfolders of all folders.
转载于:https://blog.51cto.com/alexmeng88/597990