Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ContentTypeRef Element (List)

Last modified: March 29, 2010

Applies to: SharePoint Foundation 2010

In this article
Attributes
Child Elements
Parent Elements
Occurrences

Specifies a reference to a content type to associate with lists that are created through the list definition.


<ContentTypeRef
  ID = "Text">
</ContentTypeRef>

Attribute

Description

ID

Required Text. Specifies the ID of the content type. For information on the format of content type IDs, see Content Type IDs.

Minimum: 0

Maximum: Unbounded

The following example shows part of a definition for a list that uses three content types.

<ContentTypes>
  <ContentTypeRef ID="0x01010012841A8869DB425cB829C3875EC558CE01">
    <Folder TargetName="Forms/Document" />
  </ContentTypeRef>
  <ContentTypeRef ID="0x01010012841A8869DB425cB829C3875EC558CE02">
    <Folder TargetName="Forms/Document" />
  </ContentTypeRef>
  <ContentTypeRef ID="0x0120" />
</ContentTypes>
Show:
© 2015 Microsoft