SPMobileList.BaseType Property

Gets or sets the base type of a list.

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

Syntax

'Declaration
Public Property BaseType As String
    Get
    Set
'Usage
Dim instance As SPMobileList
Dim value As String

value = instance.BaseType

instance.BaseType = value
public string BaseType { get; set; }

Property Value

Type: System.String
A String that specifies the base type of the list.

Remarks

Although the property is type String, you must use a string representation of the name or the number of the base type as it appears in the SPBaseType enumeration. The possible values are shown in the following table.

"GenericList"

"0"

"DocumentLibrary"

"1"

"DiscussionBoard"

"3"

"Survey"

"4"

"Issue"

"5"

If, for any reason, the base type is not specified, the BaseType property can be either "UnspecifiedBaseType" or "-1".

"2" is not used in SharePoint Foundation.

You cannot create custom list base types because doing so would require modifying the global Onet.xml file, which is not supported. However, there would be no real point to doing so anyway. You can create custom list definitions and templates. See How to: Create a Custom List Definition.

See Also

Reference

SPMobileList Class

SPMobileList Members

Microsoft.SharePoint.MobileControls Namespace