I'm attempting to retrieve items from a subfolder in a document library. I must get these items where value is 'Like'. How can I do this via C# using the SP object model or by CAML query?
this is what I have so far:
using (SPSite site = new SPSite("http://mySite/Shared Documents/"))
{
using (SPWeb web = site.OpenWeb())
{
//get sub folder url
string SubFolderUrl = web.ServerRelativeUrl + "/shared documents/SubFolderName";
//able to get the subfolder at this point
SPFolder SubFolder = web.GetFolder(SubFolderUrl);
//Now what could I do from here to get the items in the subfolder?
//use SPQuery object against the folder?
}
}
any suggestions are welcomed, thanks.