What is SPSite?

What is SPSite?

Represents a collection of sites in a Web application, including a top-level Web site and all its subsites. Each SPSite object, or site collection, is represented within an SPSiteCollection object that consists of the collection of all site collections in the Web application.

Where is SharePoint DLL located?

As you have SharePoint installed on the development machine (you must), hit Browse… on the Add reference dialog, and you can find the DLL from C:\Program Files\Common Files\microsoft shared\Web Server Extensions\14\ISAPI .

What’s the difference between a spsite and a rootweb?

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. – w128 Jun 6 ’14 at 10:39.

What does it mean to have a spsite object?

[SPSite] Represents a collection of sites on a virtual server, including a top-level site and all its subsites. Each SPSite object, or site collection, is represented within an SPSiteCollection object that consists of the collection of all site collections on the virtual server.

What’s the difference between a spsite and a pipe?

Your example is a bit ambiguous. One example deals with just 1 SPWeb at a specific location, the other with an SPSite, as you say, but you pipe ALL the subwebs of that SPSite (and even subwebs within subwebs I believe).

Which is an example of piped subwebs in a specific location?

One example deals with just 1 SPWeb at a specific location, the other with an SPSite, as you say, but you pipe ALL the subwebs of that SPSite (and even subwebs within subwebs I believe). So it may be that you find the field in a completely different SPWeb under the SPSite, where before you were just checking 1 specific SPWeb under the SPSite.