C# SharePoint get folder list
-
Good morning. I was wondering if there was an easy way to access the list of folders and subfolders from a SharePoint site. I have the following so far:
namespace SharePoint_Tree
{
public partial class _Default : System.Web.UI.Page
{//public static void Main() //{ //} protected void Page\_Load(object sender, EventArgs e) { teamspace.Lists tsl = new teamspace.Lists(); tsl.Credentials = CredentialCache.DefaultCredentials; XmlNode resp = tsl.GetList("Content and Structure Reports"); this.Response.Write(resp.OuterXml); } }
}
Thank you, WHEELS
-
Good morning. I was wondering if there was an easy way to access the list of folders and subfolders from a SharePoint site. I have the following so far:
namespace SharePoint_Tree
{
public partial class _Default : System.Web.UI.Page
{//public static void Main() //{ //} protected void Page\_Load(object sender, EventArgs e) { teamspace.Lists tsl = new teamspace.Lists(); tsl.Credentials = CredentialCache.DefaultCredentials; XmlNode resp = tsl.GetList("Content and Structure Reports"); this.Response.Write(resp.OuterXml); } }
}
Thank you, WHEELS
Now that you've found the correct forum, go look for yourself. Microsoft has a very special place for this type of information, it's called documentation[^]
only two letters away from being an asset
-
Now that you've found the correct forum, go look for yourself. Microsoft has a very special place for this type of information, it's called documentation[^]
only two letters away from being an asset