获取一个值,该值指示是否适用于仅在网站集的根网站的网站定义配置或Web 模板。
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public ReadOnly Property IsRootWebOnly As Boolean
Get
用法
Dim instance As SPWebTemplate
Dim value As Boolean
value = instance.IsRootWebOnly
public bool IsRootWebOnly { get; }
属性值
类型:System.Boolean
true如果模板或配置仅适用于根网站 ;否则为false。默认值为false。
备注
If the SPWebTemplate represents a site definition configuration, this property corresponds to the RootWebOnly attribute of a Configuration element in a WebTemp*.xml file. (See WebTemp.xml for more information.) If the attribute is not present, then the property is false.
如果SPWebTemplate代表Web 模板,则此属性始终返回false。