The following code snippet is used to retrieve the list of document libraries.
SPWeb _web = SPContext.Current.Web;
SPListCollection ListColl = _web.Lists;
foreach (SPList _lst में ListColl)
{
if (_lst.BaseTemplate == SPListTemplateType.DocumentLibrary)
{
LibList.Items.Add(_lst.Title);
}
}
BaseTemplateType can be used to identify the Type of list.
एक उत्तर दें छोड़ दो