This documentation is archived and is not being maintained.

SP.AttachmentCollection object (sp.js)

SharePoint 2013

Represents the collection of attachments for a list item.

Last modified: March 09, 2015

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

var object = new SP.AttachmentCollection()

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.

Show: