Share via


SP.List.contentTypesEnabled Property

Applies to: SharePoint Foundation 2010

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

var value = SP.List.get_contentTypesEnabled(); 
SP.List.set_contentTypesEnabled(value);

Property Value

Type: Boolean

Applies To

SP.List Class

Exceptions

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

See Also

Reference

SP.List Methods

SP.List Properties

SP Namespace