What is a SPSite and SPWeb object, and what is the difference between - ProProfs Discuss
Advertisement

What is a SPSite and SPWeb object, and what is the difference between each of the objects?

Asked by Pravinmohite, Last updated: Mar 17, 2024

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

pravinmohite

pravinmohite

pravinmohite
Pravinmohite

Answered Jan 04, 2019

The SPSite object represents a collection of sites (site collection [a top level sites and all its subsites]).
The SPWeb object represents an instance SharePoint Web, and SPWeb object contains things like the actual content.
A SPSite object contains the various subsites and the information regarding them.
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.