使用sharepoint的CAML查询,有的时候需要设置范围,这时候只需要设置SPQuery的ViewAttributes属性即可
下面是SPQuery.ViewAttributes的值:
queryDefault.ViewAttributes = "Scope='Default'"; queryFilesOnly.ViewAttributes = "Scope='FilesOnly'"; queryRecursive.ViewAttributes = "Scope='Recursive'"; queryRecursiveAll.ViewAttributes = "Scope='RecursiveAll'"; 具体可以参考一下文档:
http://www.cnblogs.com/oymx/archive/2013/12/27/3493807.html