简体   繁体   English

如何使用Sharepoint API检查Sharepoint文档库是否设置了Require Approval标志?

[英]How do I check if a Sharepoint Document Library has the Require Approval flag set, using the Sharepoint API?

It would also be useful to be able to check the "Requires Checkout" flag as well. 能够检查“Requires Checkout”标志也是有用的。 I thought it might be a property on the SPDocumentLibrary object, but I can't see it. 我认为它可能是SPDocumentLibrary对象上的属性,但我看不到它。

Do I need to look in one of the admin namespaces...? 我是否需要查看其中一个管理员命名空间...?

Require approval is represented by the Boolean property EnableModeration on the Microsoft.SharePoint.SPList class. 需要批准由Microsoft.SharePoint.SPList类上的布尔属性EnableModeration表示。 Require checkout is controlled by the property ForceCheckout on the same class. 要求结账由同一级别的ForceCheckout属性控制。 Remember to also call the Update() method on the SPList class to save your changes to the database. 还记得在SPList类上调用Update()方法来保存对数据库的更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SharePoint 图书馆设置要求内容批准的奇怪行为 - Weird behavior in SharePoint library set up to require content approval 如何使用SharePoint Online的SharePoint REST API访问默认的SharePoint图像库? - How do I access the default SharePoint image library by using the SharePoint REST API for SharePoint Online? 如何在 Sharepoint 中创建文档集? - How do I create a document set in Sharepoint? 如何将文档从Sharepoint文档库返回给用户? - How do I return a document from a Sharepoint Document library to the user? How to get SharePoint “Approval status” column data inside the SharePoint designer 2013 using SharePoint Plus api - How to get SharePoint “Approval status” column data inside the SharePoint designer 2013 using SharePoint Plus api SharePoint文档库版本控制,并要求使用Web服务进行检出设置 - SharePoint document library versioning and require check out settings using web services Sharepoint文档库—文档集 - Sharepoint Document Library — Document Set 如何在SharePoint文档库上设置独占权限? - how to set exclusive permissions on a SharePoint document library? 如何更改SharePoint中特定文档库的上传页面? - How do I change the upload page for a particular document library in SharePoint? 如何将图像添加到 SharePoint 文档库中的 URL 项目? - How do I add an image to a URL item in a SharePoint document library?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM