What is the difference between SPList.ContentTypesEnabled and SPList.AllowContentTypes?
What is the difference between SPList.ContentTypesEnabled and SPList.AllowContentTypes ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.