共用方式為


SPWebTemplate Members

Include Protected Members
Include Inherited Members

Represents either a site definition configuration or a Web template that is used to create SharePoint sites.

The SPWebTemplate type exposes the following members.

Properties

  Name Description
Public property AllowGlobalFeatureAssociations Gets a value that indicates whether global Feature associations are allowed on sites created with the site definition configuration or Web template.
Public property Description Gets the description for the site definition configuration or Web template.
Public property DisplayCategory Gets the name, as it appears in the user interface, of the category of site definition configurations and Web templates to which the SPWebTemplate belongs.
Public property FilterCategories Gets the legacy category of the site that served as the source for the template when SPWebTemplate represents a custom Web template.
Public property ID Gets the ID for the site definition configuration or Web template.
Public property ImageUrl Gets the URL to the image that is used to represent the site definition configuration or Web template in the user interface of SharePoint Foundation.
Public property IsCustomTemplate Gets a value that indicates whether the SPWebTemplate object is a custom site definition configuration or is, instead, a Web template.
Public property IsHidden Gets a value that indicates whether the site definition configuration is displayed in the user interface as one of the optional configurations used for creating new sites.
Public property IsRootWebOnly Gets a value that indicates whether the site definition configuration or Web template is applicable to only the root site in the site collection.
Public property IsSubWebOnly Gets a value that indicates whether the site definition configuration or Web template is applicable only to subsites created within the site collection.
Public property IsUnique Obsolete. Gets a value that indicates whether the site created from the site definition configuration or Web template inherits from its parent site.
Public property Lcid Gets the locale ID of the site definition configuration or Web template.
Public property Name Gets the internal name of the site definition configuration or Web template.
Public property ProvisionAssembly Gets the name of an assembly that contains a class that provides logic for provisioning sites created through the site definition configuration or Web template.
Public property ProvisionClass Gets the name of a class that provides logic for provisioning sites created through the site definition configuration or Web template.
Public property ProvisionData Specifies custom data to pass to the site provisioning handler for creating sites.
Public property SupportsMultilingualUI Gets a value that indicates whether adiministrators can enable alternate langauges for sites created from the site definition configuration or the Web template.
Public property Title Gets the display name for the site definition configuration or Web template.
Public property VisibilityFeatureDependencyId Gets the GUID that identifies a Feature on which the site definition configuration or Web template depends.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Returns a culture-invariant string that describes the site definition configuration or Web template. (Overrides Object.ToString().)

Top

Fields

  Name Description
Public fieldStatic member WebTemplateBLOG The name of the site definition used for blog sites. Value = "BLOG".
Public fieldStatic member WebTemplateMWS The name of the site definition used for a Meetings sites. Value = "MPS".
Public fieldStatic member WebTemplateSTS The name of the site definition used for Team sites. Value = "STS".
Public fieldStatic member WebTemplateWIKI The name of the site definition used for wiki sites. Value = "WIKI".

Top

See Also

Reference

SPWebTemplate Class

Microsoft.SharePoint Namespace