Свойство List.EnableVersioning
Gets or sets a value that specifies whether historical versions of list items and documents can be created in the list.
Пространство имен: Microsoft.SharePoint.Client
Сборки: Microsoft.SharePoint.Client.Silverlight (в Microsoft.SharePoint.Client.Silverlight.dll); Microsoft.SharePoint.Client.Phone (в Microsoft.SharePoint.Client.Phone.dll) Microsoft.SharePoint.Client (в Microsoft.SharePoint.Client.dll)
Синтаксис
'Декларация
Public Property EnableVersioning As Boolean
Get
Set
'Применение
Dim instance As List
Dim value As Boolean
value = instance.EnableVersioning
instance.EnableVersioning = value
public bool EnableVersioning { get; set; }
Значение свойства
Тип: System.Boolean
Returns Booleantrue if historical versions of list items and documents can be created in the list otherwise returns false. The default value is
Исключения
Исключение | Условие |
---|---|
[System.ArgumentException] | Value is set to true and the list does not support historical versions. Error code: -2147024809. |
[System.NotSupportedException] | Value is set to true and the list is an external list. Error code: -1. |