using System; using Microsoft.SharePoint; namespace HelloSharePoint { class Program {
static void Main() { const string siteUrl = "http://localhost"; using (SPSite siteCollection = new SPSite(siteUrl)) { SPWeb site = siteCollection.RootWeb; foreach (SPList list in site.Lists) { if (!list.Hidden) { Console.WriteLine(list.Title); } } } } } }
SharePoint 2010 Hello World
最新推荐文章于 2019-07-23 21:53:00 发布