You can use the following code to pull just the document Libraries
for(SPList list in SPContext.Current.Web.Lists)
{
//101 is the template id for document library.
if(!list.Hidden & list.BaseType= SPBaseType.DocumentLibrary & (int)list.BaseTemplate == 101)
{
//Get Documen Library Info
}
}
No comments:
Post a Comment