Sequenti est ad recipiendum est album of code snippet libraries document.
SPWeb _web = SPContext.Current.Web;
SPListCollection ListColl = _web.Lists;
foreach (SPList _lst in ListColl)
{
si (_lst.BaseTemplate == SPListTemplateType.DocumentLibrary)
{
LibList.Items.Add(_lst.Title);
}
}
BaseTemplateType can be used to identify the Type of list.
Aliquam pharetra