If you are a member of the Office 2010 Technical Preview program, you have all you need to write your first SharePoint 2010 application.
How? Well, the Office 2010 integration with SharePoint 2010 means that you’ll get a few interesting DLL files added to your Office installation folder, especially when installing SharePoint Designer 2010 and Visio 2010.
These files are proxy DLLs and wont actually interact with SharePoint, but they are still extremely interesting from a developer’s point of view as they are effectively a complete listing of the new Microsoft.SharePoint.Client namespace.
This will be an extremely simple demo, and you’ll need to have the SharePoint Designer 2010 Technical Previews installed. Well, actually, you’ll need a DLL that installs as part of that application, Microsoft.SharePoint.Client.Local.dll.
Start a new Visual Studio project; any version of Visual Studio will do. The project type should be Console Application, and you can name it pretty much anything you like.
Next, add a reference to the Microsoft.SharePoint.Client.Local.dll file, usually located in the C:\Program Files\Microsoft Office\Office14 folder (or the equivalent in an x64 OS).
Inside the Program.cs file, add a using Microsoft.SharePoint.Client; statement at the top, and then paste the following code in the Main function:
foreach (int s in Enum.GetValues(typeof(ListTemplateType)))
Enum.GetName(typeof(ListTemplateType), s), s
Build, run, and enjoy the output, which should resemble the result below.
Here’s the list in text format, with the new list times highlighted:
Using .NET Reflector you can open any of these DLLs to start exploring the SharePoint 2010 object model right now.
Found this article valuable? Want to show your appreciation? Here are some options:
a) Click on the banners anywhere on the site to visit my blog's sponsors. They are all hand-picked and are selected based on providing great products and services to the SharePoint community.
b) Donate Bitcoins! I love Bitcoins, and you can donate if you'd like by clicking the button below.
c) Spread the word! Below, you should find links to sharing this article on your favorite social media sites. I'm an attention junkie, so sharing is caring in my book!