6 Microsoft® Office Business Applications for Office SharePoint® Server 2007 by Microsoft Corporation

6 Microsoft® Office Business Applications for Office SharePoint® Server 2007 by Microsoft Corporation

Author:Microsoft Corporation
Language: eng
Format: epub
Tags: COMPUTERS / Client-Server Computing
ISBN: 9780735643635
Publisher: Microsoft Press
Published: 2010-05-06T00:00:00+00:00


bool doesAssignLibExists = DoesLibExist(site, strAssignmentLib); if (doesAssignLibExists) { if (docLib != null) { if (documentContentType != null) docLib.ContentTypes.Delete(documentContentType.Id); if (assignmentContentType != null) docLib.ContentTypes.Add(assignmentContentType); docLib.OnQuickLaunch = false; docLib.ForceCheckout = true; docLib.RequestAccessEnabled = true; docLib.ContentTypesEnabled = true; docLib.Update(); } } bool doesSubmittedLibExists = DoesLibExist(site, strSubmittedLib); if (!doesSubmittedLibExists) { lists.Add(strSubmittedLib, "Provides Storage For Submitted Assignments", listTemplate); }

Now we have to set up the role definition on the site. If you need to reference a RoleDefinition by type, you can do so within a RoleDefinition collection in the following manner, which is helpful when constructing an arbitrary Windows SharePoint Services application that is going to tap into the security framework (we have seen this before in previous sections with the custom activity code):



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.