Export (0) Print
Expand All
Expand Minimize

SPFieldType enumeration

Specifies a field type for a field.

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

public enum SPFieldType

Member nameDescription
InvalidNot used. Value = 0.
IntegerSpecifies positive or negative integer values. Corresponds to the Integer field type that is specified on the Field element. Value = 1.
TextSpecifies 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.
NoteSpecifies 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.
DateTimeSpecifies date and time values. Corresponds to the SPFieldDateTime class and to the DateTime field type that is specified on the Field element. Value = 4.
CounterSpecifies an integer used for internal ID fields. Corresponds to the Counter field type that is specified on the Field element. Value = 5.
ChoiceSpecifies 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.
LookupSpecifies 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.
BooleanSpecifies 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.
NumberSpecifies floating point numbers. Corresponds to the SPFieldNumber class and to the Number field type that is specified on the Field element. Value = 9.
CurrencySpecifies 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.
URLSpecifies hyperlinks. Corresponds to the SPFieldUrl class and to the URL field type that is specified on the Field element. Value = 11.
ComputedSpecifies 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.
ThreadingSpecifies 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.
GuidSpecifies GUIDs. Corresponds to the Guid field type that is specified on the Field element. Value = 14.
MultiChoiceSpecifies 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.
GridChoiceSpecifies 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.
CalculatedSpecifies calculated values. Corresponds to the SPFieldCalculated class and to the Calculated field type that is specified on the Field element. Value = 17.
FileSpecifies files. Corresponds to the SPFieldFile class and to the File field type that is specified on the Field element. Value = 18.
AttachmentsSpecifies attachments. Corresponds to the SPFieldAttachments class and to the Attachments field type that is specified on the Field element. Value = 19.
UserSpecifies 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.
RecurrenceSpecifies 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.
CrossProjectLinkSpecifies 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.
ModStatSpecifies Content Approval status. Corresponds to the SPFieldModStat class and to the ModStat field type that is specified on the Field element. Value = 23.
ErrorSpecifies errors. Value = 24.
ContentTypeIdSpecifies a content type ID. Corresponds to the ContentTypeId field type that is specified on the Field element. Value = 25.
PageSeparatorInserts 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.
ThreadIndexSpecifies 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.
WorkflowStatusSpecifies workflow status. Corresponds to the SPFieldWorkflowStatus class and to the WorkflowStatus field type that is specified on the Field element. Value = 28.
AllDayEventSpecifies an all day event. Corresponds to the SPFieldAllDayEvent class and to the AllDayEvent field type that is specified on the Field element. Value = 29.
WorkflowEventTypeSpecifies a workflow event type. Corresponds to the WorkflowEventType field type that is specified on the Field element. Value = 30.
Geolocation
OutcomeChoice
MaxItemsSpecifies the maximum number of items. Value = 31.
Show:
© 2014 Microsoft