开发者

How do I list current files in a document library?

开发者 https://www.devze.com 2023-03-19 05:48 出处:网络
I have a document library that I would like to get the list of file names and put them into a string[] array.Can someone give me some sample code of ho开发者_如何学编程w this would look like?Assuming

I have a document library that I would like to get the list of file names and put them into a string[] array. Can someone give me some sample code of ho开发者_如何学编程w this would look like?


Assuming you need server side object model (for a WebPart or a statndalone tool to run on the server). Please look at the SPDocumentLibrary class that has sample listing names of the items in a document library - http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spdocumentlibrary.aspx.

0

精彩评论

暂无评论...
验证码 换一张
取 消