SP.ContentTypeCollection Methods

Applies to: SharePoint Foundation 2010

The following table lists the methods of the SP.ContentTypeCollection class.

Methods

Name

Description

add

Adds a new content type to the collection.

addExistingContentType

Adds the specified content type to the collection.

ContentTypeCollection

Initializes a new instance of the SP.ContentTypeCollection Class.

getById

Returns the content type with the specified ID from the collection.

itemAt

Gets the element at the specified index of the collection.

Applies To

SP.ContentTypeCollection Class

See Also

Reference

SP.ContentTypeCollection Properties

SP Namespace