共用方式為


SPWebTemplate.ProvisionAssembly Property

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.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public ReadOnly Property ProvisionAssembly As String
    Get
'Usage
Dim instance As SPWebTemplate
Dim value As String

value = instance.ProvisionAssembly
public string ProvisionAssembly { get; }

Property Value

Type: System.String
A String that contains the name of the assembly.

Remarks

If the SPWebTemplate represents a site definition configuration, this property is the value of the ProvisionAssembly attribute of a Configuration element in a WebTemp*.xml. (See Understanding WebTemp*.xml Files for more information.)

The ProvisionAssembly and ProvisionClass properties together identify a class used to support creating sites through the site definition configuration or Web template.

Examples

The following is an example of the value of this property.

ProvisionAssembly="MyCompany.SharePoint.ProvisionHelper, Version=1.0.0.0, Culture=neutral, PublicKeyToken=82f0cdf222f0530d"

See Also

Reference

SPWebTemplate Class

SPWebTemplate Members

Microsoft.SharePoint Namespace