سؤال

يمكن تعريف

النسخة بنفس الطريقة في واجهة المستخدم في SP2013 و O365:

إعدادات النسخة

كيف يمكننا تعيين هذه الحدود برمجيا في SP2013 بدون رمز جانب الخادم؟

جانب الخادم سيكون لدينا splist.majorversionlimit و Splist.majorwithminorversionslimit ولكن أعضاء القائمة جانب العميل لا تحتوي على هذه الخصائص.

هل كانت مفيدة؟

المحلول

The Microsoft.SharePoint.Client.dll with version 15.0.4665.1000 and above provide the MajorVersionLimit-property. If you can upgrade to the latest CU you should be doing fine.

نصائح أخرى

You can't do this using CSOM. This is a limitation of CSOM. However, if you can use templates to create document libraries or lists then you can do it in the template itself. Use CSOM to create document libraries or lists using the pre-defined templates where version settings are pre-configured.

Stumbled the same issue. No solution yet.

I posted it as a feedback at OfficeDev UserVoice, hope it will be fixed soon or later - MajorVersionLimit & MajorWithMinorVersionsLimit props for List in CSOM/REST

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى sharepoint.stackexchange
scroll top