Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between SPList.ContentTypesEnabled and SPList.AllowContentTypes?

What is the difference between SPList.ContentTypesEnabled and SPList.AllowContentTypes?

like image 983
Zee99 Avatar asked Nov 30 '10 14:11

Zee99


1 Answers

SPList.ContentTypesEnabled

Gets or sets a Boolean value specifying whether content types are enabled for the list.

AllowContentTypes

Returns true if the list supports content types.

The first one can be used to get and set while the second one lets you know wether the list supports content types or not so that you can set the first one accordingly to enable content types.

like image 179
Ashutosh Singh-MVP SharePoint Avatar answered Oct 05 '22 22:10

Ashutosh Singh-MVP SharePoint