List.ContentTypesEnabled property

Gets or sets a value that specifies whether content types are enabled for the list.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Property ContentTypesEnabled As Boolean
    Get
    Set
'Usage
Dim instance As List
Dim value As Boolean

value = instance.ContentTypesEnabled

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

Property value

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

Exceptions

Exception Condition
[System.InvalidOperationException]

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

See also

Reference

List class

List members

Microsoft.SharePoint.Client namespace