Partager via


Attachments Property

The Attachments property of the SPListItem class gets the collection of attachments associated with the list item.

Property Value

A Microsoft.SharePoint.SPAttachmentCollection object that represents the attachments.

Remarks

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

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security