This topic has not yet been rated - Rate this topic

SPListItem.Attachments Property

Gets the collection of attachments that are associated with the item.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public SPAttachmentCollection Attachments { get; }

Property Value

Type: Microsoft.SharePoint.SPAttachmentCollection
A collection of attachments.

The Attachments property does not apply to document libraries and returns an ArgumentOutOfRangeException exception if applied to a document library.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ