Share point 2013 development server object model

  • Published on
    16-Apr-2017

  • View
    213

  • Download
    1

Embed Size (px)

Transcript

<p>PowerPoint Presentation</p> <p>SharePoint 2013 Server Object ModelbySharePoint 2013 Server Object Model</p> <p>SharePoint 2013Server Object Model </p> <p>+91 90305 18717http://staygreenacademy.com/What is Server Object Model ?Set of classes and namespaces separated into .Net Libraries.</p> <p>What is the use of these classes?Allows to develop server-side programs interacting with the SharePoint engine</p> <p>What is server-side programs/solutions?Set of instruction running on Server</p> <p>How to use Server Object ModelAdd the library/assembly as a reference in your Visual Studio project.</p> <p>When is it best to use Server Object Model?Only when a solution requires to talk with SharePoint farm/engine. This solution is called Farm or Sandboxed solution based on how it is deployed.</p> <p>Introduction</p> <p>SharePoint 2013Server Object Model </p> <p>+91 90305 18717http://staygreenacademy.com/</p> <p>IntroductionWhat is the initial best development approach?Develop solution using Console application in initial stage.</p> <p>Why ?Its speeds up the development processIt does not require deployment for testing</p> <p>Any cautions ?Make sure project is targeted to 4.5 Framework, and 64x Platform</p> <p>Which is the main library need to reference?Microsoft.SharePoint.dll</p> <p>Where Microsoft.SharePoint.dll and other assemblies are located?Under 15Hive\ISAPI (15Hive = C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\)</p> <p>SharePoint 2013Server Object Model </p> <p>+91 90305 18717http://staygreenacademy.com/</p> <p>PracticalObjects TypesLocated or defined in the namespace starts with Microsoft.SharePoint.* Microsoft.Office.*Type or Class names starts with SPExamples : SPFarm, SPWebApplication, SPSite, SPWeb etc</p> <p>SharePoint 2013Server Object Model </p> <p>+91 90305 18717http://staygreenacademy.com/</p> <p>Object Hierarchy</p> <p>SharePoint 2013Server Object Model </p> <p>+91 90305 18717http://staygreenacademy.com/</p> <p>PracticalCreating first LIST Programmatically.</p> <p>SharePoint 2013Server Object Model </p> <p>+91 90305 18717http://staygreenacademy.com/</p> <p>UsingSPSiteSPWebSite.AllWebsWeb.TitleWeb.Dispose()Display All sub sites under a site collectionsPractical</p> <p>SharePoint 2013Server Object Model </p> <p>+91 90305 18717http://staygreenacademy.com/</p> <p>UsingSPSiteSPWebSite.AllWebsWeb.TitleWeb.Dispose()Display All SitesPractical</p> <p>SharePoint 2013Server Object Model </p> <p>+91 90305 18717http://staygreenacademy.com/</p> <p>siteCollection.RootWebSPListsite.Lists.TryGetList()list.Deletesite.Lists.Add()list.Fields.Add()SPFieldTypeSPViewlist.DefaultViewdefaultView.ViewFields.Add()SPListItemlist.Items.Add()Practical</p> <p>SharePoint 2013Server Object Model </p> <p>+91 90305 18717http://staygreenacademy.com/Console ApplicationPractice 1 : How to display name of Lists available in a site ?Practice 2 : How to display List of sites under a site collection ?Practice 3 : How to display List Items of a List ?Practice 3 : How to create List ?Practice 4 : How to create List Item ?Practice 5 : How to create a Site ?Practice 6 : How to Add a Field in a List?Practice 7 : How to include Field in a Default ViewPractical</p> <p>SharePoint 2013Server Object Model </p> <p>+91 90305 18717http://staygreenacademy.com/Thank You for Watching</p> <p> SharePoint 2013 Server Object Model</p> <p> by</p> <p>SharePoint 2013Server Object Model </p> <p>+91 90305 18717http://staygreenacademy.com/</p>