Hi Rich,
I think I found solution, but I don't know if it is the best. The way of enumerating I described in previous reply. This is code of my solution:
// Add a folder to the Project
var folderToAdd = ItemFactory.Instance.Create(sResultsPath);
await QueuedTask.Run(() => Project.Current.AddItem(folderToAdd as IProjectItem));
// find the folder project item
FolderConnectionProjectItem folder = Project.Current.GetItems<FolderConnectionProjectItem>().FirstOrDefault(f => f.Path.Equals(sResultsPath, StringComparison.CurrentCultureIgnoreCase));
if (folder == null) return;
// do the search
IEnumerable<Item> folderFiles = null;
await QueuedTask.Run(() => folderFiles = folder.GetItems().Where(f => f.Type == "Raster Dataset"));
foreach (Item item in folderFiles)
{
System.Diagnostics.Debug.WriteLine(item.ToString());
}