Поделиться через


Свойство List.ContentTypesEnabled

Gets or sets a value that specifies whether content types are enabled for 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 ContentTypesEnabled As Boolean
    Get
    Set
'Применение
Dim instance As List
Dim value As Boolean

value = instance.ContentTypesEnabled

instance.ContentTypesEnabled = value
public bool ContentTypesEnabled { get; set; }

Значение свойства

Тип: System.Boolean
Returns Booleantrue if content types are enabled for the list otherwise returns false. The default value is

Исключения

Исключение Условие
[System.InvalidOperationException]

Value is set to true, and the list does not allow content types. Error code: -2146232832.

См. также

Справочные материалы

List класс

Элементы List

Пространство имен Microsoft.SharePoint.Client