Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SPWebTemplate.IsCustomTemplate property

Gets a value that indicates whether the SPWebTemplate object is a custom site definition configuration or is, instead, a Web template.

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

public bool IsCustomTemplate { get; }

Property value

Type: System.Boolean
true if the SPWebTemplate object is a Web template; otherwise, false, which means it is a site definition configuration.

If the SPWebTemplate object is an SPCustomWebTemplate, IsCustomTemplate always returns true.

© 2015 Microsoft