Not
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013
Specifies a reference to a content type to associate with lists that are created through the list definition.
<ContentTypeRef
ID = "Text">
</ContentTypeRef>
Elements and attributes
The following sections describe attributes, child elements, and parent elements.
Attributes
| Attribute | Description |
|---|---|
| ID |
Required Text. Specifies the ID of the content type. For information about the format of content type IDs, see Content Type IDs. |
Child elements
Parent elements
Occurrences
- Minimum: 0
- Maximum: Unbounded
Example
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>