简体   繁体   English

SPList.ContentTypesEnabled和SPList.AllowContentTypes之间的区别?

[英]Difference between SPList.ContentTypesEnabled and SPList.AllowContentTypes?

SPList.ContentTypesEnabledSPList.AllowContentTypes什么SPList.AllowContentTypes

SPList.ContentTypesEnabled SPList.ContentTypesEnabled

Gets or sets a Boolean value specifying whether content types are enabled for the list. 获取或设置一个布尔值,指定是否为列表启用内容类型。

AllowContentTypes AllowContentTypes

Returns true if the list supports content types. 如果列表支持内容类型,则返回true。

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. 第一个可用于获取和设置,而第二个可以让您知道列表是否支持内容类型,以便您可以相应地设置第一个以启用内容类型。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM