다음을 통해 공유


ContentType Element (DeploymentManifest)

Applies to: SharePoint Foundation 2010

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>

Type

SPContentType

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

Child Elements

None

Parent Elements

SPObject Element (DeploymentManifest)

See Also

Reference

ContentTypes Element (DeploymentManifest)

SPContentType

Concepts

DeploymentManifest Schema