ContentType Element (DeploymentManifest)
Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013
Represents an object that specifies the content type for a Windows SharePoint Services 3.0 object.
Definition
DECLARATION
<xs:element
name="ContentType"
type="SPContentType"
/>
USAGE
<SPObject>
<ContentType
ID="Guid"
Name="xs:string"
Scope="xs:string"
ParentWebId="Guid"
ListId="Guid"
Description="xs:string"
Group="xs:string"
PushDownChanges="xs:boolean"
RequireClientRenderingOnNew="xs:string"
/>
</SPObject>
Type
Elements and attributes
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute | Type | Description |
---|---|---|
ID |
Guid Simple Type (DeploymentManifest) |
Optional. Unique identifier of the content type. |
Name |
xs:string |
Optional. Name of the content type. |
Scope |
xs:string |
Specifies whether the content type is Web-level or list-level. If Web-level, then scope includes all lists. Optional on export; required on import if the scope is set to list level. |
ParentWebId |
Guid Simple Type (DeploymentManifest) |
Unique identifier of the parent website. Optional on export; required on import if the scope is set to Web level. |
ListId |
Guid Simple Type (DeploymentManifest) |
Unique identifier of the content type list. This attribute is relevent only if the Scope attribute is list-level. Optional on export; required on import. |
Description |
xs:string |
Optional. Description of the content type. |
Group |
xs:string |
Optional. |
PushDownChanges |
xs:boolean |
Optional. |
RequireClinetRenderingOnNew |
xs:string |
Optional. |
Child elements
None
Parent elements
SPObject Element (DeploymentManifest)