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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

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

value = instance.IsCustomTemplate
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.

Remarks

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

See Also

Reference

SPWebTemplate Class

SPWebTemplate Members

Microsoft.SharePoint Namespace