SiteData.EnumerateFolder returns zero/null folder RRS feed

  • Question

  • Hi All,

    I've been struggling to make this SiteDate.EnumerateFolder method work, no matter what relative path I provide as an argument, the output argument (listFolder) is always null, any clue? an example with relative path would be great. By the way I've seen the example on msdn but no luck with that and also searched google with no success.

                com.teamsites.SiteData.SiteData studentSiteData = new com.teamsites.SiteData.SiteData();
                studentSiteData.Credentials = Credentials;
                //URL of the subsite
                studentSiteData.Url = "";
                //Absolute Path of the folders containing attachments:

                com.teamsites.SiteData._sFPUrl[] listFolders;
                string folderSiteRelativePath = "Lists/Parents/Attachments";

                studentSiteData.EnumerateFolder(folderSiteRelativePath, out listFolders);

    I'm expecting listFolder to return the list folders inside "Attachments" folder but its returning null. I hope this will help you understand my issue if not let me know I'll try to explaing in more details.

    Thanks in advane,


    Always ask experienced rather than knowledgeable.
    Sunday, January 11, 2009 6:08 PM


All replies