SPFieldType Enumeration

Specifies a field type for a field.

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

Syntax

'Declaration
<SubsetCallableTypeAttribute> _
<ClientCallableTypeAttribute(Name := "FieldType", ServerTypeId := "{5760D11E-6E91-4eb1-AEF5-272502AEDF52}")> _
Public Enumeration SPFieldType
'Usage
Dim instance As SPFieldType
[SubsetCallableTypeAttribute]
[ClientCallableTypeAttribute(Name = "FieldType", ServerTypeId = "{5760D11E-6E91-4eb1-AEF5-272502AEDF52}")]
public enum SPFieldType

Members

Member name Description
Invalid Not used. Value = 0.
Integer Specifies positive or negative integer values. Corresponds to the Integer field type that is specified on the Field element. Value = 1.
Text Specifies a single line of text. Corresponds to the SPFieldText class and to the Text field type that is specified on the Field element. Value = 2.
Note Specifies a field that can contain multiple lines of text. Corresponds to the SPFieldMultiLineText class and to the Note field type that is specified on the Field element. Value = 3.
DateTime Specifies date and time values. Corresponds to the SPFieldDateTime class and to the DateTime field type that is specified on the Field element. Value = 4.
Counter Specifies an integer used for internal ID fields. Corresponds to the Counter field type that is specified on the Field element. Value = 5.
Choice Specifies a predetermined set of values that can be used to enter data into the field. Corresponds to the SPFieldChoice class and to the Choice field type that is specified on the Field element. Value = 6.
Lookup Specifies references to values in other lists. Corresponds to the SPFieldLookup class and to the Lookup field type that is specified on the Field element. Value = 7.
Boolean Specifies Boolean values that are stored in the database as 1 or 0. Corresponds to the SPFieldBoolean class and to the Boolean field type that is specified on the Field element. Value = 8.
Number Specifies floating point numbers. Corresponds to the SPFieldNumber class and to the Number field type that is specified on the Field element. Value = 9.
Currency Specifies currency values formatted based on a specific locale. Corresponds to the SPFieldCurrency class and to the Currency field type that is specified on the Field element. Value = 10.
URL Specifies hyperlinks. Corresponds to the SPFieldUrl class and to the URL field type that is specified on the Field element. Value = 11.
Computed Specifies an abstract field type that depends on other fields for its content and definition. Corresponds to the SPFieldComputed class and to the Computed field type that is specified on the Field element. Value = 12.
Threading Specifies a field that is used in the creation and display of threaded Web discussions. Corresponds to the Threading field type that is specified on the Field element. Value = 13.
Guid Specifies GUIDs. Corresponds to the Guid field type that is specified on the Field element. Value = 14.
MultiChoice Specifies multiple values per list item. Corresponds to the SPFieldMultiChoice class and to the MultiChoice field type that is specified on the Field element. Value = 15.
GridChoice Specifies a Choice field for a data sheet. Corresponds to the SPFieldRatingScale class and to the GridChoice field type that is specified on the Field element. Value = 16.
Calculated Specifies calculated values. Corresponds to the SPFieldCalculated class and to the Calculated field type that is specified on the Field element. Value = 17.
File Specifies files. Corresponds to the SPFieldFile class and to the File field type that is specified on the Field element. Value = 18.
Attachments Specifies attachments. Corresponds to the SPFieldAttachments class and to the Attachments field type that is specified on the Field element. Value = 19.
User Specifies users of a SharePoint site. Corresponds to the SPFieldUser class and to the User field type that is specified on the Field element. Value = 20.
Recurrence Specifies a field that is used in calendars for recurring events and abstract field type that, like computed fields, depends on other fields for its content and definition. Corresponds to the SPFieldRecurrence class and to the Recurrence field type that is specified on the Field element. Value = 21.
CrossProjectLink Specifies a link between projects in a Meetings Workspace site. Corresponds to the SPFieldCrossProjectLink class and to the CrossProjectLink field type that is specified on the Field element. Value = 22.
ModStat Specifies Content Approval status. Corresponds to the SPFieldModStat class and to the ModStat field type that is specified on the Field element. Value = 23.
Error Specifies errors. Value = 24.
ContentTypeId Specifies a content type ID. Corresponds to the ContentTypeId field type that is specified on the Field element. Value = 25.
PageSeparator Inserts a page break in a survey list. Corresponds to the SPFieldPageSeparator class and to the PageSeparator field type that is specified on the Field element. Value = 26.
ThreadIndex Specifies the ID that indicates the relative position of a message within a conversation thread. Corresponds to the ThreadIndex field type that is specified on the Field element. Value = 27.
WorkflowStatus Specifies workflow status. Corresponds to the SPFieldWorkflowStatus class and to the WorkflowStatus field type that is specified on the Field element. Value = 28.
AllDayEvent Specifies an all day event. Corresponds to the SPFieldAllDayEvent class and to the AllDayEvent field type that is specified on the Field element. Value = 29.
WorkflowEventType Specifies a workflow event type. Corresponds to the WorkflowEventType field type that is specified on the Field element. Value = 30.
MaxItems Specifies the maximum number of items. Value = 31.

See Also

Reference

Microsoft.SharePoint Namespace