共用方式為


FeatureSiteTemplateAssociation Element (FeatureSiteTemplateAssociation)

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.

Associates the specified Features with the specified site definition configuration so that when Web sites are provisioned, the Features are automatically included.

<FeatureSiteTemplateAssociation
    Id = "Text"
  TemplateName = "Text">
    <Property
      Key= "Text"
    Value = "Text">
    </Property>
  ...
</FeatureSiteTemplateAssociation>

Attributes

Attribute

Description

Id

Required Text. Specifies the GUID for the Feature.

TemplateName

Required Text. Specifies the name of the site definition configuration. Windows SharePoint Services includes the following site definition configurations by default.

  • STS#0   Team Site

  • STS#1   Blank Site

  • STS#2   Document Workspace

  • MPS#0   Basic Meeting Workspace

  • MPS#1   Blank Meeting Workspace

  • MPS#2   Decision Meeting Workspace

  • MPS#3   Social Meeting Workspace

  • MPS#4   Multipage Meeting Workspace

  • WIKI#0   Wiki

  • BLOG#0   Blog

Child Elements

Property

Parent Elements

Elements

Example

For an example of how this element is used, see Feature/Site Template Associations.

Microsoft.Win32.RegistryKey#4