ContentType Element (DeploymentManifest)

Last modified: July 15, 2011

Applies to: SharePoint Foundation 2013 | SharePoint Server 2013

In this article
Type
Attributes
Child Elements
Parent Elements

Represents an object that specifies the content type for a Windows SharePoint Services 3.0 object.


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>

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 Web site.

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.

Show: