c# - SharePoint checkin SPListItem

标签 c# sharepoint moss wss

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

相关文章:

c# - Facebook 登录 Asp.net Mvc 对象引用未设置为对象的实例

c# - 您如何计算出用户 MySite 的 ID

sharepoint - 列表模板所有者

sharepoint - 莫斯 2007 : BDC permisson problem - no BDC application is listed in the web part's configuration menu

c# - 属性 'Context' 是 F# 中的静态错误

c# - 从代码创建 Azure Redis 缓存

java - Java 中的 WebDriver C# 扩展方法

javascript - SharePoint 列表不考虑 RowLimit CAML 标记 - JavaScript

sharepoint - 创建 Sharepoint/MOSS 站点地图

sharepoint - 场类型初始化程序异常中的 MOSS 2007 站点