1.

Difference Between Spsite And Spweb Object?

Answer»

SPSite:

  • 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.

SPSite:

SPWeb:



Discussion

No Comment Found