Friday, 8 November 2013

Programmatically get all listName in share point using C#

Share it Please
                  String SiteURL = "";
                  SPSite site = new SPSite(SiteURL);
                  SPWeb myWeb = site.OpenWeb();
                  foreach (SPList aList in myWeb.Lists)
                  {
                      string ListTitle = aList.Title;
                      //string rootName = aList.RootFolder.Name;
                  }

No comments:

Post a Comment

Followers

Follow The Author