Introduction
People are often confused between the SPList.ContentTypesEnabled and SPList.AllowContentTypes properties of the SPList class. This article outlines the differences.
Explanation
- SPList.ContentTypesEnabled gets or sets a Boolean value specifying whether content types are enabled for the list. Set this value to true to enable content types on the list.
- SPList.AllowContentTypes returns a boolean read-only value. The value is true if the list supports content types. This property can only be set in a list definition.