Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Difference between SPWeb and SPSite

  Asked By: Chandrashekhar    Date: Jul 16    Category: Sharepoint    Views: 8283

what is the difference between SPWeb and SPSite?



2 Answers Found

Answer #1    Answered By: Sarita Patel     Answered On: Jul 16

The SPSite class represents a collection of sites contained on a virtual server, which includes the top-level (root) site and all its subsites. Each SPSite object can be found within the Sites property of an SPWebApplication class.

The SPWeb class represents an instance of a single website. It is often confusing to developers because the root web of a site collection (which is created when a site collection is created) is an instance of the SPWeb class.

Answer #2    Answered By: Martin Crow     Answered On: Jan 15

SP Sites is collection of various sites related to each other,while SP web is the collection of actual content of any site..


Didn't find what you were looking for? Find more on Difference between SPWeb and SPSite Or get search suggestion and latest updates.