Wednesday, 4 February 2009

Windows SharePoint Services - Wikipedia, the free encyclopedia Changes I have added, please edit as you see fit

The Content Objects hierarchy

Because WSS is primarily used to create html delivered sites in the form of .aspx files it is logical view the WSS object hierarchy starting from that type of object. WSS represents single web pages with the SPWeb object.

The SPWeb class is part of the Microsoft SharePoint Namespace in the Assembly microsoft.sharepoint.dll. This dll is located in the GAC folder. The Web property of the SPContext class returns the SPWeb object of the current Web site. Thus the following C# code sets WebValue to the SPWeb:

  • SPWeb WebValue = SPContext.Current.Web;

SharePoint content model allows the creation of SPWeb objects above and below other SPWeb objects. To innumerate subsites from a given SPWeb instance you use the method Webs.

A set of SPWebs can be collected together in a SPSite object. SPSite represents a Site Collection object in SharePoint. A SPSite will have SPContentDatabase object as a parent. This represents the SQL Server database that stores the Web Applications content. Parent to this class is the SPWebApplication object. The database represented by the SPContentDatabase object stores content for the SPWebApplication object. SPWebApplication inherits from the SPWebService class.

The following C# code will set ContentDatabases to the ContentDatabaseCollection

  • public SPContentDatabaseCollection ContentDatabases { get; }

Below a SPWeb object is the SPWebList. SPWebList represents the SharePoint list object. Understanding lists is central to understanding how SharePoint manages information. Essentially everything that is managed by SharePoint will be in a list at some level. WSS 3.0 places emphasis upon lists over pages as such.

[3]


SPList is composed of distinct elements of the SPListItem. Each SPListItem will have a set of SPFields. SPFields is the lowest object of the hierarchy.

Rober1236jua (talk) 16:56, 4 February 2009 (UTC)

Windows SharePoint Services - Wikipedia, the free encyclopedia
Blogged with the Flock Browser

No comments:

Post a Comment