Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

SPList.EnableAttachments property

Gets or sets a Boolean value that specifies whether attachments can be added to items in the list.

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

public bool EnableAttachments { get; set; }

Property value

Type: System.Boolean
true if attachments can be added to list items; otherwise, false.

The EnableAttachments property does not apply to any list that has a base type of Survey or DocumentLibrary. If you set this property to true for either type of list, it throws an SPException.

Show:
© 2015 Microsoft