Question

Could anybody explain the difference between SP.Web and SP.Site entities? As I understand SP.Site contains different SP.Webs, that represent SiteCollections. Is it correct? Could you please share any links for better understanding this approach?

Était-ce utile?

La solution

Basically:

UI Term          API Class Name
-------          --------------
Site Collection  SPSite
Site             SPWeb

For further information, see the following:

SPWeb.Webs, Site vs SubSite

Getting my head round spsite vs spweb vs anything else

SPSite vs SPWeb, Site Collection vs Site

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top