O'Reilly logo

Microsoft SharePoint 2010 Developer's Compendium: The Best of Packt for Extending SharePoint by Carl Jones

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a site column

A site column is the building block for creating a content type. In this recipe, we will create a site column using the SharePoint object model.

Getting ready

You should have a fully-functional development machine with SharePoint 2010 installed and configured. You also need Visual Studio 2010 IDE installed on the same development machine.

How to do it…

  1. Launch your Visual Studio 2010 IDE as an administrator (right-click on the shortcut and select Run as administrator.)
  2. Select File | New | Project. The new project wizard dialog box as shown in the following screenshot will be displayed (make sure to select .NET Framework 3.5 in the top drop-down box):
  3. Select Empty SharePoint Project under Visual C# | SharePoint | 2010 node from ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required