Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

SP.AddFieldOptions Enumeration

SharePoint 2010

Last modified: January 26, 2010

Applies to: SharePoint Foundation 2010

Specifies the control settings while adding a field.

Name

Description

defaultValue

Enumeration whose values specify that a new field added to the list must also be added to the default content type in the site collection. The value = 0.

addToDefaultContentType

Enumeration whose values specify that a new field added to the list must also be added to the default content type in the site collection. The value = 1.

addToNoContentType

Enumeration whose values specify that a new field must not be added to any other content type. The value = 2.

addToAllContentTypes

Enumeration whose values specify that a new field that is added to the specified list must also be added to all content types in the site collection. The value = 4.

addFieldInternalNameHint

Enumeration whose values specify adding an internal field name hint for the purpose of avoiding possible database locking or field renaming operations. The value = 8.

addFieldToDefaultView

Enumeration whose values specify that a new field that is added to the specified list must also be added to the default list view. The value = 16.

addFieldCheckDisplayName

Enumeration whose values specify to confirm that no other field has the same display name. The value = 32.

Show:
© 2015 Microsoft