SPListItem.Attachments Property (Microsoft.SharePoint)
Gets the collection of attachments that are associated with the item.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
Syntax

Visual Basic (Declaration)
Public ReadOnly Property Attachments As SPAttachmentCollection
Visual Basic (Usage)
Dim instance As SPListItem
Dim value As SPAttachmentCollection

value = instance.Attachments
C#
public SPAttachmentCollection Attachments { get; }

Property Value

An 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.

See Also

Tags :


Page view tracker