List.EnableFolderCreation 屬性
取得或設定值,指出是否可以將新清單資料夾新增至清單。
命名空間: 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 EnableFolderCreation As Boolean
Get
Set
'用途
Dim instance As List
Dim value As Boolean
value = instance.EnableFolderCreation
instance.EnableFolderCreation = value
public bool EnableFolderCreation { get; set; }
屬性值
類型:System.Boolean
傳回Booleantrue如果新清單的資料夾可以新增至清單否則會傳回false。預設值是
例外狀況
例外狀況 | 條件 |
---|---|
[Microsoft.SharePoint.SPException] | 值會設定為true ,清單不支援清單資料夾。錯誤碼 ︰-2146232832。 |