In this post we will discuss about SharePoint server object model components. This is applicable for both SharePoint 2013 and SharePoint 2010.
Also you can check out:
- Change local debugging URL in visual studio 2012 for SharePoint 2013
- Different authentication types supported in SharePoint 2013
- Apps packaging in SharePoint 2013
In the SharePoint hierarchy, the highest level component is the Farm.
Farm:
This is the collection of all physical and logical components that make up an environment.
Here the class name to interact with is: SPFarm
Namespace: Microsoft.SharePoint.Administration
Server:
After Farm Servers are the next component. A small developement farm can contain 1 server where a larger environment can have more than one component.
Here the class name to interact with is: SPServer
Namespace: Microsoft.SharePoint.Administration
Web Application:
The third level is known as web applications. Web applications has its own web sites in IIS. Every farm has a Central Administration web application without this farm will not be functional.
Here the class name to interact with is: SPWebApplication
Namespace: Microsoft.SharePoint.Administration
Content Databases:
The next level is the content databases which are nothing but SQL databases that contain all of the data and many of the settings that are stored in site collections.
Here the class name to interact with is: SPContentDatabase
Namespace: Microsoft.SharePoint.Administration
Site Collections:
The next level is site collection levels which are the logical containers within a web application.
Here the class name to interact with is: SPSite
Namespace: Microsoft.SharePoint
Sites:
A site collection can contains up to 250,000 sites.
Here the class name to interact with is: SPWeb
Namespace: Microsoft.SharePoint
List/Library:
Sites contain lists and libraries that are used to store files, documents, and items.
Here the class name to interact with is: SPList
Namespace: Microsoft.SharePoint
Items:
An item can be a document, a picture, a page, a task, an announcement, or a calendar item. A item is the lowest in the hierarchy in SharePoint.
Here the class name to interact with is: SPItem
Namespace: Microsoft.SharePoint
Also you can check out:
- Change local debugging URL in visual studio 2012 for SharePoint 2013
- Different authentication types supported in SharePoint 2013
- Apps packaging in SharePoint 2013
In the SharePoint hierarchy, the highest level component is the Farm.
This is the collection of all physical and logical components that make up an environment.
Here the class name to interact with is: SPFarm
Namespace: Microsoft.SharePoint.Administration
Server:
After Farm Servers are the next component. A small developement farm can contain 1 server where a larger environment can have more than one component.
Here the class name to interact with is: SPServer
Namespace: Microsoft.SharePoint.Administration
Web Application:
The third level is known as web applications. Web applications has its own web sites in IIS. Every farm has a Central Administration web application without this farm will not be functional.
Here the class name to interact with is: SPWebApplication
Namespace: Microsoft.SharePoint.Administration
Content Databases:
The next level is the content databases which are nothing but SQL databases that contain all of the data and many of the settings that are stored in site collections.
Here the class name to interact with is: SPContentDatabase
Namespace: Microsoft.SharePoint.Administration
Site Collections:
The next level is site collection levels which are the logical containers within a web application.
Here the class name to interact with is: SPSite
Namespace: Microsoft.SharePoint
Sites:
A site collection can contains up to 250,000 sites.
Here the class name to interact with is: SPWeb
Namespace: Microsoft.SharePoint
List/Library:
Sites contain lists and libraries that are used to store files, documents, and items.
Here the class name to interact with is: SPList
Namespace: Microsoft.SharePoint
Items:
An item can be a document, a picture, a page, a task, an announcement, or a calendar item. A item is the lowest in the hierarchy in SharePoint.
Here the class name to interact with is: SPItem
Namespace: Microsoft.SharePoint