SP.ContentTypeCollection.item property (sp.js)

Gets the element at the specified index of the collection.

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

var value = SP.ContentTypeCollection.get_item ()

Parameters

  • index

Return value

Type: SP.ContentType

The element at the specified index of the SP.ContentTypeCollection.

Remarks

This method is an O(1) operation.

REST resource endpoint

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes/item

HTTP requests

This resource supports the following HTTP commands:

  • GET

GET syntax

GET http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes/item

Resource parameters

  • index