gpt4 book ai didi

c# - SharePoint checkin SPListItem

转载 作者:太空狗 更新时间:2023-10-30 00:06:38 25 4
gpt4 key购买 nike

在 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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com