SP.AttachmentCollection object (sp.js)

Represents the collection of attachments for a list item.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var object = new SP.AttachmentCollection()

Members

The AttachmentCollection object has the following members.

Constructor

The AttachmentCollection object has the following constructor.

Constructor

Description

AttachmentCollection

Methods

The AttachmentCollection object has the following methods.

Method

Description

getByFileName

itemAt

Properties

The AttachmentCollection object has the following properties.

Property

Description

childItemType

item

Gets the file name of the attachment at the specified index in the collection. In C#, this property is the indexer for the SP.AttachmentCollection object.