To better appreciate the intuitiveness and ease of programming with the object model, let’s quickly create a console application that displays all the lists in a top-level SharePoint site under a given site collection.
Try It Yourself: Display Lists in a SharePoint Site
To display lists in a SharePoint site, follow these steps:
1. Fire up Visual Studio, create a new console application, and add a reference to Microsoft.SharePoint.dll assembly. As discussed in Hour 3, “Starting Development with SharePoint 2010,” make sure that your console application targets .NET Framework 3.5 and has either X64 or Any CPU set under the Platform Target property present in the project’s Build configuration tab. By ...
With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, interactive tutorials, and more.