获取一个值,该值指示是否仅适用于网站集中创建子网站的网站定义配置或Web 模板。
命名空间: Microsoft.SharePoint
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Public ReadOnly Property IsSubWebOnly As Boolean
Get
用法
Dim instance As SPWebTemplate
Dim value As Boolean
value = instance.IsSubWebOnly
public bool IsSubWebOnly { get; }
属性值
类型:System.Boolean
true如果模板或配置仅适用于子网站 ;否则为false。
备注
If the SPWebTemplate represents a site definition configuration, this property corresponds to the SubWebOnly 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。