Documente Academic
Documente Profesional
Documente Cultură
Server Object
Model
by
http://staygreenacademy.com
Introductio
n
SharePoint 2013
Server Object
Model
http://staygreenacademy.com
Introductio
n
SharePoint 2013
Server Object
Model
Any cautions ?
Make sure project is targeted to 4.5 Framework, and 64x Platform
Which is the main library need to reference?
Microsoft.SharePoint.dll
Where Microsoft.SharePoint.dll and other assemblies are
located?
Under 15Hive\ISAPI (15Hive = C:\Program Files\Common Files\Microsoft
Shared\Web Server Extensions\15\)
http://staygreenacademy.com
Practical
SharePoint 2013
Server Object
Model
Objects Types
Located or defined in the namespace starts with
Microsoft.SharePoint.*
Microsoft.Office.*
Type or Class names starts with SP
Examples : SPFarm, SPWebApplication, SPSite, SPWeb
etc
http://staygreenacademy.com
Object
Hierarchy
SharePoint 2013
Server Object
Model
SPFarm
SPService
SPWebApplication
SPSite
SPWeb
SPList
SPWeb
SPList
SPList
SPListIte
m
http://staygreenacademy.com
Practical
SharePoint 2013
Server Object
Model
http://staygreenacademy.com
Practical
SharePoint 2013
Server Object
Model
Using
SPSite
SPWeb
Site.AllWebs
Web.Title
Web.Dispose
()
http://staygreenacademy.com
Practical
SharePoint 2013
Server Object
Model
Using
SPSite
SPWeb
Site.AllWebs
Web.Title
Web.Dispose()
http://staygreenacademy.com
Practical
siteCollection.RootWeb
SPList
SharePoint 2013
Server Object
Model
site.Lists.TryGetList()
list.Delete
site.Lists.Add()
list.Fields.Add()
SPFieldType
SPView
list.DefaultView
defaultView.ViewFields.Add(
)
SPListItem
list.Items.Add()
+91 90305 18717
http://staygreenacademy.com
SharePoint 2013
Server Object
Model
Practical
Console Application
Practice 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 View
http://staygreenacademy.com
SharePoint 2013
Server Object
Model
by
http://staygreenacademy.com