共用方式為


SPList.ContentTypesEnabled property

取得或設定Boolean值,指定是否啟用內容類型的清單。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Property ContentTypesEnabled As Boolean
    Get
    Set
'用途
Dim instance As SPList
Dim value As Boolean

value = instance.ContentTypesEnabled

instance.ContentTypesEnabled = value
public bool ContentTypesEnabled { get; set; }

Property value

Type: System.Boolean
true如果清單中,會啟用內容類型否則,請false。

請參閱

參照

SPList class

SPList members

Microsoft.SharePoint namespace