SPList.ExcludeFromTemplate property

Gets a Boolean value that indicates whether the content of the list is included when the list is saved as a list template or when the site to which the list belongs is saved as a site template.

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

Public ReadOnly Property ExcludeFromTemplate As Boolean
Dim instance As SPList
Dim value As Boolean

value = instance.ExcludeFromTemplate

Property value

Type: System.Boolean
true if the content of the list is included in the list or site template; otherwise, false.