Difference between SPSite and SPWeb object

Difference between SPSite and SPWeb object.


- The SPSite object represents a collection of sites, i.e. Site Collection, a top level site and all its sub sites.

- It is used to get a sub site of a Site Collection.

- It is represented within an SPSiteCollection object that consists of the collection of all site collections in the Web application.

- It contains the various subsites and the information regarding them.


- The SPWeb object represents an instance of a SharePoint Web, and the SPWeb object contains things like the actual content.

- It represents a SharePoint Foundation website.

- SPWeb object automatically adds the new SPWeb object to an internal list.

- It contains things like the actual content.
Role of SPWebApplication object
The SPWebApplication class consists of various methods and properties to perform various manipulations on web applications....
SharePoint List items
Create a reference to the SharePoint Lists.asmx web service by appending “/_vti_bin/Lists.asmx” to the end of a site name. One can use this url to add a service reference in Visual studio there onwards. ......
What is CAML?
What is CAML? - It is an XML based language and provides data constructs used to build up the SharePoint fields and is also used for table definition......
Post your comment