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 how this would look like?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.