共用方式為


List.ContentTypesEnabled 屬性

取得或設定值,指出是否已經為清單啟用內容類型。

命名空間:  Microsoft.SharePoint.Client
組件:   Microsoft.SharePoint.Client.Silverlight (在 Microsoft.SharePoint.Client.Silverlight.dll 中);  Microsoft.SharePoint.Client.Phone (在 Microsoft.SharePoint.Client.Phone.dll 中)  Microsoft.SharePoint.Client (在 Microsoft.SharePoint.Client.dll 中)

語法

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

value = instance.ContentTypesEnabled

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

屬性值

類型:System.Boolean
傳回Booleantrue如果清單中啟用內容類型,則否則會傳回false。預設值是

例外狀況

例外狀況 條件
[System.InvalidOperationException]

值會設定為true,而且清單不允許內容類型。錯誤碼 ︰-2146232832。

請參閱

參照

List 類別

List 成員

Microsoft.SharePoint.Client 命名空間