Sharepoint Interview Questions on Sharepoint Object Model
What is a SPSite and SPWeb object, and what is the difference between each of the objects? 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. How would you go about getting a reference to a site? Select For Unformatted Code C#: oSPSite = new SPSite("http:/server"); oSPWeb = oSPSite.OpenWeb(); Internet Explorer 6, Netscape Navigator 6.2 or later. What does a SPWebApplication object represent? The SPWebApplication objects represents a SharePoint Web Application, which essentially is an IIS virtual server. Using the class you can instigate high level operations, such as getting all the features of an entire Web Application instance, or doing high level creation operations like creating new Web Applications through