List.EnableFolderCreation property
Gets or sets a value that specifies whether new list folders can be added to the list.
Namespace: Microsoft.SharePoint.Client
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Property EnableFolderCreation As Boolean
Get
Set
'Usage
Dim instance As List
Dim value As Boolean
value = instance.EnableFolderCreation
instance.EnableFolderCreation = value
public bool EnableFolderCreation { get; set; }
Property value
Type: System.Boolean
Returns Booleantrue if new list folders can be added to the list otherwise returns false. The default value is
Exceptions
Exception | Condition |
---|---|
[Microsoft.SharePoint.SPException] | Value is set to true and the list does not support list folders. Error code: -2146232832. |