在 SharePoint 中,您如何 checkin SPListItem?
最佳答案
参见 MSDN:SPListItem.File . CheckIn() ;
例如:
SPFile file = item.File;
if (file.CheckOutStatus != SPFile.SPCheckOutStatus.None)
{
file.CheckIn("Reason for check in.", SPCheckinType.MajorCheckIn);
}
可选的第二个参数允许通过 SPCheckinType enumeration 指定次要、主要或覆盖检查。 .
关于c# - SharePoint checkin SPListItem,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1362417/