SPQuery query = new SPQuery();
query.Query = "
query.Folder = folder;
query.ViewAttributes = "Scope=\"Recursive\"";
SPListItemCollection itemCol = yourList.GetItems(query)
Those above code will get all items under specifies folder (include subfolder).
No comments:
Post a Comment