Freigeben über


WebTemplate Element (Upgrade)

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.

Contains the site template upgrade definition.

<WebTemplate 
  BeginFromSchemaVersion = "Integer"
  EndFromSchemaVersion = "Integer"
  FromProductVersion = "Integer"
  ID = "Integer"
  LocaleId = "Integer"
    RemoveSiteExternalSecurityProvider = "TRUE | "FALSE"
  ToSchemaVersion = "Integer">
    ...
  <Lists>
    ...
  </Lists>
  <Files>
      ...
    </Files>
  <AppliedWebFeatures>
      ...
    </AppliedWebFeatures>
</WebTemplate>

Attributes

Attribute

Description

BeginFromSchemaVersion

Optional Integer. Specifies the start of a schema version range to which this upgrade definition applies.

EndFromSchemaVersion

Optional Integer. Specifies the end of a schema version range to which this upgrade definition applies.

FromProductVersion

Optional Integer. Specifies the product version of the original site definition to which this upgrade definition applies.

ID

Required Integer. Specifies the identifier of the site definition to be upgraded. This value corresponds to the ID attribute of the Template element.

LocaleId

Optional Integer. Specifies the locales to which the site upgrade definition applies. Set to * to imply that the definition applies to all site definition upgrades. Windows SharePoint Services implements only one upgrade definition per locale. If * is specified and a locale-specific upgrade definition exists, Windows SharePoint Services uses the locale-specific upgrade definition. If the locale-specific definition does not exist, Windows SharePoint Services falls back to the * upgrade definition.

RemoveSiteExternalSecurityProvider

Optional Boolean. TRUE to exclude any external security provider from the upgrade; otherwise, FALSE.

ToSchemaVersion

Optional Integer. Specifies the product version to which the site definition is upgraded.

Child Elements

AppliedSiteFeatures, AppliedWebFeatures, Files, Lists

Parent Elements

Config

Occurrences

Minimum: 1

Maximum: Unbounded

Example

For an example of how this element is used, see Upgrade Definition Schema.

Microsoft.Win32.RegistryKey#4