Hi I'm trying to get file from a documentLibray with LINQ Query. I've been trying with this code but I get nothing!
var allegatiCollegati = (from SPFile attach in web.Lists.["Allegati"].items
select attach ).ToList();
|
Hi I'm trying to get file from a documentLibray with LINQ Query. I've been trying with this code but I get nothing!
|
||||
|
|
|
SPList.Items (web.Lists.["Allegati"].Items) returns an SPListItemCollection collection, which contains SPListItem and not SPFile objects. You can get the SPFile from the SPListItem by calling SPListItem.File. |
|||
|
|
|
||||