SPWebTemplate.ProvisionAssembly 属性

获取包含用于设置通过网站定义配置Web 模板创建的网站提供逻辑的类的程序集的名称。

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public ReadOnly Property ProvisionAssembly As String
    Get
用法
Dim instance As SPWebTemplate
Dim value As String

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

属性值

类型:System.String
String 包含的程序集的名称。

备注

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 WebTemp.xml for more information.)

ProvisionAssembly和ProvisionClass属性一起确定用于支持通过网站定义配置Web 模板创建网站的类。

示例

下面是值的此属性的示例。

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

另请参阅

引用

SPWebTemplate 类

SPWebTemplate 成员

Microsoft.SharePoint 命名空间