What is the difference between SPList.ContentTypesEnabled
and SPList.AllowContentTypes
?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With