SP.ContentType Properties

Applies to: SharePoint Foundation 2010

The following table lists the properties of the SP.ContentType class.

Properties

Name

Description

description

Gets or sets a description of the content type.

displayFormTemplateName

Gets or sets a value that specifies the name of a custom display form template to use for list items that have been assigned the content type.

displayFormUrl

Gets or sets a value that specifies the URL of a custom display form to use for list items that have been assigned the content type.

documentTemplate

Gets or sets a value that specifies the file path to the document template used for a new list item that has been assigned the content type.

documentTemplateUrl

Gets a value that specifies the URL of the document template assigned to the content type.

editFormTemplateName

Gets or sets a value that specifies the name of a custom edit form template to use for list items that have been assigned the content type.

editFormUrl

Gets or sets a value that specifies the URL of a custom edit form to use for list items that have been assigned the content type.

fieldLinks

Gets the column (also known as field) references in the content type.

fields

Gets a value that specifies the collection of fields for the content type.

group

Gets or sets a value that specifies the content type group for the content type.

hidden

Gets or sets a value that specifies whether the content type is unavailable for creation or usage directly from a user interface.

id

Gets a value that specifies an identifier for the content type. The ContentTypeId type is the identifier for the specified content type. The identifier is a string composed of hexadecimal characters. The identifier must be unique relative to the current site collection and site, and must follow the pattern of prefixing a ContentTypeId with its parent ContentTypeId.

name

Gets or sets a value that specifies the name of the content type.

newFormTemplateName

Gets or sets a value that specifies the name of the content type.

newFormUrl

Gets or sets a value that specifies the name of the content type.

parent

Gets the parent content type of the content type.

readOnly

Gets or sets a value that specifies whether changes to the content type properties are denied.

schemaXml

Gets a value that specifies the XML Schema representing the content type.

scope

Gets a value that specifies a server-relative path to the content type scope of the content type.

workflowAssociations

Gets a value that specifies the collection of workflow associations for the content type.

Applies To

SP.ContentType Class

See Also

Reference

SP.ContentType Methods

SP Namespace