共用方式為


ContentType Element (DeploymentManifest)

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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