SharePoint Document Library中的"Versioning Settings"功能与CSOM的对应

简介: 博客地址:http://blog.csdn.net/FoxDaveSharePoint文档库关于版本的设置:“Versioning Settings”,可以通过CSOM用List对象的一些属性去设置它。


博客地址: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属性,可以用来方便地获取与设置库的版本设置。

相关文章
|
9月前
|
iOS开发
XCode 4.3.2 如何新建 Window-based Application应用的简单例子
XCode 4.3.2 如何新建 Window-based Application应用的简单例子
64 2
idea报错URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)
idea报错URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)
idea报错URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)
|
缓存 前端开发
[Css 修改后 Google浏览器上无效果] 文件上有:Generated source files should not be edited 的警告
[Css 修改后 Google浏览器上无效果] 文件上有:Generated source files should not be edited 的警告
310 0
[Css 修改后 Google浏览器上无效果] 文件上有:Generated source files should not be edited 的警告
|
存储 Dart Android开发
【Flutter】shared_preferences 本地存储 ( 简介 | 安装 shared_preferences 插件 | 使用 shared_preferences 流程 )
【Flutter】shared_preferences 本地存储 ( 简介 | 安装 shared_preferences 插件 | 使用 shared_preferences 流程 )
456 0
【Flutter】shared_preferences 本地存储 ( 简介 | 安装 shared_preferences 插件 | 使用 shared_preferences 流程 )
|
iOS开发
Xcode Source Editor Extension
在 Xcode 8.0 的 beta 里面,Apple 引入了一个新的面向 macOS 的 App Extension,叫做 Xcode Source Editor Extension(以下简称插件),今天看到一个提问说是这个怎么弄,我简单看了一下 WWDC 的 Session:https://developer.apple.com/videos/play/wwdc2016/414/ 现在总结在这
3826 0
|
Web App开发
SharePoint Site "Language Settings"功能与CSOM的对应
博客地址:http://blog.csdn.net/FoxDave SharePoint网站中的语言设置:"Language Settings",可以用CSOM通过Site的一些属性去设置它。
1012 0

热门文章

最新文章