This documentation is archived and is not being maintained.

SPWebTemplate.IsCustomTemplate Property

Windows SharePoint Services 3

Gets a value that indicates whether the SPWebTemplate object is a custom site definition configuration or is, instead, a site 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 custom site template; otherwise, false, which means it is a site definition configuration.

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

Show: