SP.FieldType Enumeration
Applies to: SharePoint Foundation 2010
Specifies the type of the field.
Values
Name |
Description |
---|---|
invalid |
Must not be used. The value = 0. |
integer |
Specifies that the field contains an integer value. The value = 1. |
text |
Specifies that the field contains a single line of text. The value = 2. |
note |
Specifies that the field contains multiple lines of text. The value = 3. |
dateTime |
Specifies that the field contains a date and time value or a date-only value. The value = 4. |
counter |
Specifies that the field contains a monotonically increasing integer. The value = 5. |
choice |
Specifies that the field contains a single value from a set of specified values. The value = 6. |
lookup |
Specifies that the field is a lookup field. The value = 7. |
boolean |
Specifies that the field contains a Boolean value. The value = 8. |
number |
Specifies that the field contains a floating-point number value. The value = 9. |
currency |
Specifies that the field contains a currency value. The value = 10. |
URL |
Specifies that the field contains a URI and an optional description of the URI. The value = 11. |
computed |
Specifies that the field is a computed field. The value = 12. |
threading |
Specifies that the field indicates the thread for a discussion item in a threaded view of a discussion board. The value = 13. |
guid |
Specifies that the field contains a GUID value. The value = 14. |
multiChoice |
Specifies that the field contains one or more values from a set of specified values. The value = 15. |
gridChoice |
Specifies that the field contains rating scale values for a survey list. The value = 16. |
calculated |
Specifies that the field is a calculated field. The value = 17. |
file |
Specifies that the field contains the leaf name of a document as a value. The value = 18. |
attachments |
Specifies that the field indicates whether the list item has attachments. The value = 19. |
user |
Specifies that the field contains one or more users and groups as values. The value = 20. |
recurrence |
Specifies that the field indicates whether a meeting in a calendar list recurs. The value = 21. |
crossProjectLink |
Specifies that the field contains a link between projects in a Meeting Workspace site. The value = 22. |
modStat |
Specifies that the field indicates moderation status. The value = 23. |
error |
Specifies that the type of the field was set to an invalid value. The value = 24. |
contentTypeId |
Specifies that the field contains a content type identifier as a value. The value = 25. |
pageSeparator |
Specifies that the field separates questions in a survey list onto multiple pages. The value = 26. |
threadIndex |
Specifies that the field indicates the position of a discussion item in a threaded view of a discussion board. The value = 27. |
workflowStatus |
Specifies that the field indicates the status of a workflow instance on a list item. The value = 28. |
allDayEvent |
Specifies that the field indicates whether a meeting in a calendar list is an all-day event. The value = 29. |
workflowEventType |
Specifies that the field contains the most recent event in a workflow instance. The value = 30. |
maxItems |
Must not be used. The value = 31. |
Remarks
The following table describes the field types that are defined and used by the base types of a SharePoint Server protocol server.
Field Type Name |
Meaning |
---|---|
AllDayEvent |
The AllDayEvent field is only used in conjunction with an Events list. true if the item is an all day event (that is, does not occur during a specific set of hours in a day). |
Attachments |
Field describes whether one or more files are associated with the item. See Attachments for more information on attachments. true if a list item has attachments, and false if a list item does not have attachments. |
Boolean |
Field allows a true or false value. |
Calculated |
Field value is calculated based on the value of other columns. |
Choice |
Field allows selection from a set of suggested values. A choice field supports a field-level setting which specifies whether free-form values are supported. |
Computed |
Field renders output based on the value of other columns. |
ContentTypeId |
Field contains a content type identifier for an item. ContentTypeId conforms to the structure defined in ContentTypeId. |
Counter |
Counter is a monotonically increasing integer field, and has a unique value in relation to other values that are stored for the field in the list. Counter is used only for the list item identifier field, and not intended for use elsewhere. |
CrossProjectLink |
Field allows a link to a Meeting Workspace site. |
Currency |
Field allows for currency-related data. The Currency field has a CurrencyLocaleId property which takes a locale identifier of the currency to use. |
DateTime |
Field allows full date and time values, as well as date-only values. |
Error |
Specifies errors. Value = 24. |
File |
Specifies a reference to a file that can be used to retrieve the contents of that file. |
GridChoice |
Grid choice supports specification of multiple number scales in a list. |
Guid |
Specifies that the value of the field is a GUID. |
Integer |
Field allows an integer value. |
Invalid |
Not used. Value = 0. |
Lookup |
Field allows a reference to another list item. The field supports specification of a list identifier for a targeted list. An optional site identifier can also be specified, which specifies the site of the list which contains the target of the lookup. |
MaxItems |
Specifies the maximum number of items. Value = 31. |
ModStat |
Specifies the current status of a moderation process on the document. Value corresponds to one of the moderation status values. |
MultiChoice |
Field allows one or more values from a set of specified choices. A MultiChoice field can also support free-form values. |
Note |
Field allows larger amounts of text. |
Number |
Field allows a positive or negative number. A number field supports a field level setting used to specify the number of decimal places to display. |
PageSeparator |
Represents a placeholder for a page separator in a survey list. PageSeparator is only intended to be used with a Survey list. |
Recurrence |
Specifies whether a field contains a recurrence pattern for an item. |
Text |
Field allows a limited-length string of text. |
Threading |
Contains data on the threading of items in a discussion board. |
ThreadIndex |
Contains a compiled index of threads in a discussion board. |
User |
A lookup to a particular user in the User Info list. |
URL |
Field allows a URL and optional description of the URL. |
WorkflowEventType |
A description of a type of a historical workflow event. See WorkflowEventType Enumeration for more information. |
WorkflowStatus |
Contains status on a running workflow for a particular item. |