16.01.2013 Views

Microsoft Sharepoint Products and Technologies Resource Kit eBook

Microsoft Sharepoint Products and Technologies Resource Kit eBook

Microsoft Sharepoint Products and Technologies Resource Kit eBook

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 33: The Windows SharePoint Services Object Model 931<br />

Table 33-4 Classes of the <strong>Microsoft</strong>.SharePoint.Meetings Namespace<br />

Name Description<br />

CustomToolPaneManager Represents a custom ToolPane Manager Web Part. This Web<br />

Part-enables you to implement tool panes using the extensible<br />

tool-pane framework.<br />

PageTabsWebPart Represents the PageTabs Web Part <strong>and</strong> is responsible for<br />

rendering the page tabs on the Meeting Workspace site.<br />

PropertyBag Represents a property bag <strong>and</strong> is responsible for rendering the<br />

Modify This Workspace link on the Meeting Workspace site. It<br />

also returns some global variables on the site that are needed<br />

for scripting.<br />

SPMeeting Provides methods <strong>and</strong> properties to work with Meeting Workspace<br />

sites.<br />

The SPMeeting Class<br />

Methods <strong>and</strong> properties for working with Meeting Workspace sites can be found in<br />

the SPMeeting class. The IsMeetingWorkspaceWeb method of the SPMeeting class<br />

determines whether the specified SharePoint site was created by using a Meeting<br />

Workspace site template. The signature of this method looks like this:<br />

public static bool IsMeetingWorkspaceWeb(<br />

<strong>Microsoft</strong>.SharePoint.SPWeb web<br />

);<br />

The web parameter contains the SharePoint site for which you want to determine<br />

whether a Meeting Workspace site template was used. The method will return<br />

a boolean that will give the value False if no Meeting Workspace site template was<br />

used. In this code example, we will make use of the IsMeetingWorkspaceWeb<br />

method <strong>and</strong> check which SharePoint sites are Meeting Workspace sites.<br />

SPSite siteCollection = new SPSite("http://server_name");<br />

SPWeb site = siteCollection.RootWeb;<br />

SPWebCollection subSites = site.Webs;<br />

foreach (SPWeb subSite in subSites)<br />

{<br />

Boolean blnTest = SPMeeting.IsMeetingWorkspaceWeb(subSite);<br />

output.Write(blnTest + "--" + subSite.Url + "" );<br />

}<br />

<strong>Microsoft</strong>.SharePoint.Security Namespace<br />

The <strong>Microsoft</strong>.SharePoint.Security namespace provides a set of code access permission<br />

<strong>and</strong> attribute classes designed to protect a specific set of resources <strong>and</strong> operations,<br />

such as access to the Windows SharePoint Services object model, the ability to

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!