This topic has not yet been rated - Rate this topic

SPMobileList.BaseType Property

Gets or sets the base type of a list.

Namespace:  Microsoft.SharePoint.MobileControls
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
public string BaseType { get; set; }

Property Value

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

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.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ