[英]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.