Il-snippet kodiċi li ġej jintuża sabiex tkun irkuprata l-lista tal-libreriji dokument.
SPWeb _web = SPContext.Current.Web;
SPListCollection ListColl = _web.Lists;
foreach (SPList _lst fl ListColl)
{
jekk (_lst.BaseTemplate == SPListTemplateType.DocumentLibrary)
{
LibList.Items.Add(_lst.Title);
}
}
BaseTemplateType can be used to identify the Type of list.
Leave a Reply