[Sharepoint2010]Sharepoint2010 development learnning materials

Get Started developing on Sharepoint 2010:
http://msdn.microsoft.com/en-us/sharepoint/ee513147.aspx

Sharepoint 2010 advanced developing trainning:
http://msdn.microsoft.com/en-us/sharepoint/ff420377.aspx

Sharepoint 2010 development home page:
http://msdn.microsoft.com/en-us/sharepoint/default.aspx

Sharepoint 2010 development SDK:
http://msdn.microsoft.com/en-us/library/ee557253.aspx

------------------------------------------------------------------

SharePoint 2010 object model:

Sites hierarchy:
 

Hello SP2010; Import Microsoft.Sharepoint.dll 
    using System;
    using Microsoft.SharePoint;
    namespace HelloSharePoint {
      class Program {
        static void Main() {
          const string siteUrl = "http://intranet.wingtip.com";|
          using (SPSite siteCollection = new SPSite(siteUrl)) {
            SPWeb site = siteCollection.RootWeb;
            foreach (SPList list in site.Lists) {
              if (!list.Hidden) {
                Console.WriteLine(list.Title);
              }
            }
          }
        }
      }
    }

Enable & disable SP2010 tracing:
    SPDeveloperDashboardSettings settings =
        SPWebService.ContentService.DeveloperDashboardSettings;
    settings.DisplayLevel = SPDeveloperDashboardLevel.On;
    //settings.DisplayLevel = SPDeveloperDashboardLevel.Off;
    settings.TraceEnabled = true;
    settings.Update();

blog comments powered by Disqus