Export (0) Print
Expand All
0 out of 1 rated this helpful - 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)
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)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.