SharePoint文档库中的文件 批量签入
SPSite site = new SPSite(站点路径);
SPWeb web = site.OpenWeb(文档库web站点路径);
SPList li=web.Lists[文档库名字];
for (int i = 0; i < li.Items.Count;i++ )
{
SPFile file = li.Items.File;
if (file.CheckOutStatus.ToString() != "None")
{ //判断文件状态,签出状态:LongTermOffline
file.CheckIn("check in by code");
file.Update();
}
}