我正在使用下面的代码,它给了我列表和文档库;但我正在尝试获取仅文档库的列表。请帮助我如何以编程方式区分列表和文档库
using(SPSite oSite = new SPSite("https://server/site"))
{
using (SPWeb oWeb = oSite.OpenWeb())
{
SPListCollection oLists = oWeb.Lists;
foreach (SPList olist in oLists)
{
Response.Write(olist.Title+"<br>");
}
}
}