共用方式為


WebTemplate 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 instance of a Windows SharePoint Services 3.0 Web template (SPWebTemplate) object, which provides the site definition used to create the site, or the name of the site defintion from which the site template used to create the site was derived.

DECLARATION
<xs:element name="WebTemplate" type="SPWebTemplate" />

USAGE
<SPObject>
        <WebTemplate
                Description="xs:string"
                Id="xs:string"
                ImageUrl="xs:string"
                IsCustomTemplate="xs:boolean"
                IsHidden="xs:boolean"
                IsUnique="xs:boolean"
                Name="xs:string"
                Title="xs:string"
        />
</SPObject

Type

SPWebTemplate object.

Attributes

Attribute

Type

Description

Description

xs:string

Optional. Provides a description of the specified Web template.

Id

xs:string

Optional. Identifier of the site definition or site template.

ImageUrl

xs:string

Optional. Represents the URL to the image that is used to represent the site definition or site template in the user interface.

IsCustomTemplate

xs:boolean

Optional. Specifies whether the SPWebTemplate object is a site template; that is, a template contained within an .stp file. The value is true if the SPWebTemplate object is a custom template.

IsHidden

xs:boolean

Optional. Specifies whether the site definition or site template is displayed as an option in the user interface. The value is true if the site template is hidden.

IsUnique

xs:boolean

Optional. Specifies whether the site created using the site definition or site template inherits from its parent Web site. The value is true if the site does not inherit from its parent Web site.

Name

xs:string

Optional. Represents the name of the site definition or site template.

Title

xs:string

Optional. Represents the display name of the site definition or site template.

Child Elements

None

Parent Elements

SPObject Element (DeploymentManifest)

See Also

Reference

SPWebTemplate

Concepts

DeploymentManifest Schema