About      |       Articles      |      Services      |      Software      |      Contact

Latest Free SharePoint Software

ARB Security Solutions regularly releases free SharePoint software, including WebParts, Client Applications, Framework Extensions, and other Miscellaneous Components.
The most recent freeware is:

Title: Simple SharePoint Rollup WebPart
Date Published: 10/22/2009

Previous Two Free WebPart Releases:

SecureCenter For SharePoint

By SharePoint security integrators, for SharePoint security integrators.

SharePoint Security Assurance Program™

For externally facing SharePoint deployments, security is an acutely important deployment concern. Learn how through daily security scanning, you can ensure external business users and partners that they can collaborate in confidence!

Security Assurance WebPart:



Return A Document Library GUID In C#

Answering another development question that was posted in the newsgroups, someone wanted to know assuming that they were aware of the path of an SPFolder object (a subfolder that existed in a SharePoint document library), how to return the GUID of the SharePoint document library that was housing the relevant SPFolder object. This is accomplished through the use of the SPFolder.ContainingDocumentLibrary property out of the Microsoft.SharePoint namespace, which has a return type of GUID, so should work correctly. Here is a quick atomic method that you can adapt to you needs (it's pretty simple right now :) ) to achieve this:

C#:
  1. private readonly SPWeb m_oWeb;
  2.  
  3. public Guid GetSPFolderDocLibGuid(string strPath)
  4. {
  5. return m_oWeb.GetFolder(strPath).ContainingDocumentLibrary;
  6. }

  • Share/Bookmark

1 Comment »

  1. [...] Answering another development question that was posted in the newsgroups, someone wanted to know assuming that they were aware of the path of an SPFolder object (a subfolder that existed in a SharePoint document library), how to return the GUID of the Read More……(read more) [...]

    Pingback by Blogger Loser » Blog Archive » Return A Document Library GUID — September 19, 2007 @ 6:42 am

RSS feed for comments on this post. TrackBack URL

Leave a comment