Rajkiran Swain
What is a SPSite and SPWeb object, and what is the difference between each of the objects?
By Rajkiran Swain in SharePoint on May 10 2017
  • Lakku Bramhendra
    Feb, 2018 2

    SPSITE is sitecollection, SPWEB is subsiteSite collection: http://india.com/sites/Karnataka sub site http://india.com/sites/Karnataka/bangalore

    • 2
  • Rajkiran Swain
    May, 2017 10

    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. SPWeb: - 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.

    • 2
  • Gaurav Gupta
    Jan, 2018 9

    The SPSite is a Class which represents a collection of sites and SpWeb is a class which represents a web or subsites. A SPSite class contains the various subsites and the information regarding them.

    • 1


Most Popular Job Functions


MOST LIKED QUESTIONS