SPList.BaseType Property

Gets the base type for the list.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

[ClientCallableConstraintAttribute(FixedId = "a", Type = ClientCallableConstraintType.Custom, Value = "It MUST be one of the following values: GenericList, DocumentLibrary, DiscussionBoard, Survey, or Issue as specified in Microsoft.SharePoint.Client.BaseType (section x.x.x.x).")]
public SPBaseType BaseType { get; }

Property Value

Type: Microsoft.SharePoint.SPBaseType
An SPBaseType value that specifies the base type.

The base types for list templates are defined in the Onet.xml file of a site definition.