This topic has not yet been rated - Rate this topic

SPWebTemplate.IsSubWebOnly Property

Windows SharePoint Services 3
Gets a value that indicates whether the site definition configuration or site template is applicable only to subsites created within the site collection.

Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in microsoft.sharepoint.dll)
public bool IsSubWebOnly { get; }

Property Value

true if the template or configuration applies only to subsites; otherwise, 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.

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

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.