Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
SDK Documentation
General Reference
Reference
List Schema
A-F
 ContentTypes Element
Community Content
In this section
Statistics Annotations (2)
Collapse All/Expand All Collapse All
This page is specific to
The 2007 product release

Other versions are also available for the following:
ContentTypes Element (List)

Contains references to content types to associate with lists that are created through the list definition.

<ContentTypes>
  <ContentTypeRef
    ID = "Text">
        <Folder
          TargetName="Text">
        </Folder>
  </ContentTypeRef>
  ...
</ContentTypes>
Attribute Description

None

N/A

Minimum: 0

Maximum: 1

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
ContentType      Daniel Flippance ... austegard   |   Edit   |   Show History
Additional Info:
  • ContentType: http://msdn2.microsoft.com/en-us/library/aa544268.aspx

  • How to: Add a Content Type to a List: http://msdn.microsoft.com/en-us/library/aa543576.aspx

ContentType as a Child Element of ContentTypes      Mudava   |   Edit   |   Show History
According to wss.xsd from (12\Template\XML), ContentTypes also supports having ContentType element as a child, not only ContentTypeRef:

<xs:complexType name="ListMetaDataDefinition">
<xs:all>
...
<xs:element name="ContentTypes" type="ContentTypeReferences" minOccurs="0" maxOccurs="1" />
</xs:all>
</xs:complexType>
...
<xs:complexType name="ContentTypeReferences">
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="ContentTypeRef" type="ContentTypeReference" />
<xs:element name="ContentType" type="ContentTypeDefinition" />
</xs:choice>
</xs:sequence>
</xs:complexType>
Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker