Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    SPSite represents a site collection while SPWeb represents a specific web site within the site collection. Normally, you open a specific SPWeb within SPSite via SPSite.OpenWeb(). You can use SPSite.AllWebs to enumerate existing webs, or SPSite.RootWeb. Commented Jun 6, 2014 at 10:39
  • So your site name is same for both the cases?? Commented Jun 6, 2014 at 11:05