SharePoint Document Library中的"Versioning Settings"功能与CSOM的对应
博客地址:http://blog.csdn.net/FoxDave
SharePoint文档库关于版本的设置:“Versioning Settings”,可以通过CSOM用List对象的一些属性去设置它。
Content Approval部分:
Specify whether new items or changes to existing items should remain in a draft state until they have been approved.
对应的属性为list.EnableModeration
布尔类型,true为Yes,false为No。
Document Version History部分:
Specify whether a version is created each time you edit a file in this document library.
Create a version each time you edit a file in this document library:
对应的属性为list.EnableVersioning和list.EnableMinorVersions
布尔类型。No versioning时,两个属性均为false;Create major versions时,EnableVersioning为ture,EnableMinorVersions为false;Create major and minor (draft) versions时,两个属性均为true。
Optionally limit the number of versions to retain:
Keep the following number of major versions:
对应的属性为list.MajorVersionLimit
整型,主要版本的保存数量限制
Keep drafts for the following number of major versions:
对应的属性为list.MajorWithMinorVersionsLimit
整型,次要版本(或主要版本草稿)的保存数量限制
Draft Item Security部分:
Drafts are minor versions or items which have not been approved. Specify which users should be able to view drafts in this document library.
对应的属性为list.DraftVersionVisibility
枚举类型,对应DraftVisibilityType(Reader、Author和Approver),分别表示设置的三个选项。
Require Check Out部分:
Specify whether users must check out documents before making changes in this document library.
对应的属性为list.ForceCheckout
布尔类型,true为Yes,false为No。
以上就是版本设置相关的CSOM属性,可以用来方便地获取与设置库的版本设置。
SharePoint Document Library中的"Versioning Settings"功能与CSOM的对应的更多相关文章
- PowerShell 批量签入SharePoint Document Library中的文件
由于某个文档库设置了编辑前签出功能,导致批量导入文件时这些文件默认的状态都被签出了.如果手动签入则费时费力,故利用PowerShell来实现批量签入Document Library中的文件. Reso ...
- SharePoint SC "Audit Settings"功能与CSOM的对应
博客地址:http://blog.csdn.net/FoxDave SharePoint网站集中有个关于审计的功能:"Site collection audit settings&quo ...
- SharePoint Site "Language Settings"功能与CSOM的对应
博客地址:http://blog.csdn.net/FoxDave SharePoint网站中的语言设置:"Language Settings",可以用CSOM通过Site的一些 ...
- SharePoint Site "Regional Settings"功能与CSOM的对应
博客地址:http://blog.csdn.net/FoxDave SharePoint网站中的区域设置:"Regional Settings",可以用CSOM通过Site的一些 ...
- SharePoint大容量文档库整体搬迁的解决方案(SharePoint document library migration)
今天客户提出了一个需求,有一个文档库,里面有500多个文档,有word,excel还有pdf文档,想要把文档搬迁到一个新的站点上面去,新的文档库和原文档库有这同样的列,客户要求文档在迁移过程中属性要带 ...
- SharePoint 2013 Step by Step—— How to Upload Multiple Documents in Document Library
How to Upload Multiple documents in SharePoint 2013,Options to add multiple files in a document libr ...
- SharePoint Server 2010 中的基本任务
SharePoint Foundation 和 SharePoint Server 概述 SharePoint Foundation 2010 是一项用于 SharePoint 网站的基础技术,它可以 ...
- SharePoint 2013 页面中window/document.onload/ready 事件不能触发的解决方案
问题1:在SharePoint 2013页面中使用Javascript 事件window/document.onload/ready时,你会发现处理onload/ready事件的代码根本不能执行. 问 ...
- SharePoint 2007 (MOSS/WSS) - how to remove "Download a Copy" context menu from a Document Library
One of my friend and colleague asked me this question. I found it tricky and a good post for my blog ...
随机推荐
- android 实现类似qq未读消息点击循环显示
public void jumpUnread(boolean cycle) { List<ContactLogModel> dataList = adapter.getContactLog ...
- MVC项目中使用js 设置Checkbox的选中事件
要实现的效果是,当点击checkbox时,跳转到Action中 CheckBox实例: View界面: @Html.CheckBox("prd.IsChecked", Model. ...
- git clone --early EOF
出现这个问题可能需要重新检查以下方面: 1. Android studio Git 的安装地址: ..../Git/cmd/git.exe 记得在环境变量 --Path 中进行配置: ,..../G ...
- iOS开发 二维码生成
基于libqrencode的二维码生成 + (void)drawQRCode:(QRcode *)code context:(CGContextRef)ctx size:(CGFloat)size { ...
- 获取$(this)子节点对象的方法
获取$(this)子节点对象的方法: 1.children()方法: children() 方法返回被选元素的所有直接子元素. 该方法只会向下一级对 DOM 树进行遍历. 2.find()方法: fi ...
- Leetcode--Merge Two Sorted Lists
static ListNode *mergeTwoLists(ListNode *l1, ListNode *l2) { ListNode *temp = ); ListNode *head = te ...
- office2003安装公式编辑器mathtype5.2
同事的一台电脑,xp系统,需要安装公式编辑器mathtype,安装完后,启动word时出现了宏的警告. 在菜单中,无论如何设置宏,都不能去除该提示框.删除了模板normal.dot,也不能解决该问题. ...
- Flatten Binary Tree to Linked List [LeetCode]
Given a binary tree, flatten it to a linked list in-place. For example,Given 1 / \ 2 5 / \ \ 3 4 6 T ...
- 挂载windows共享文件夹
sudo mount -o username=用户名,password=密码 //本机IP/共享目录 ~/挂载目录
- Sublime Text 3 使用问题答疑
命令面板/命令模式:ctrl+shift+pctrl+cctrl+v → ctrl+shift+v粘贴时会保持原格式(缩进)ctrl+sctrl+z撤销ctrl+y恢复撤销在当前行下面添加一行:ctr ...