Share via


SPWebTemplate.IsRootWebOnly property

Gets a value that indicates whether the site definition configuration or Web template is applicable to only the root site in the site collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public ReadOnly Property IsRootWebOnly As Boolean
    Get
'Usage
Dim instance As SPWebTemplate
Dim value As Boolean

value = instance.IsRootWebOnly
public bool IsRootWebOnly { get; }

Property value

Type: System.Boolean
true if the template or configuration applies only to root sites; otherwise, false. The default is false.

Remarks

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.

If the SPWebTemplate represents a Web template, this property always returns false.

See also

Reference

SPWebTemplate class

SPWebTemplate members

Microsoft.SharePoint namespace

Other resources

WebTemp.xml

Collaborative Application Markup Language (CAML)

Custom Site Templates

Site Definitions and Configurations