Tuesday, July 21, 2009

Difference between siteCollection.AllWebs and siteCollection.OpenWeb

siteCollection.AllWebs: Returns all the webs within site collection,It is a sharepoint property. for example If you wish to inherit same master page in all subsite in site collection, you can use this property.

siteCollection.OpenWeb: It is method and take SPWeb as parameter. It used to access particular web within site collection.

No comments:

Post a Comment