Export (0) Print
Expand All
Expand Minimize

SPAddFieldOptions Enumeration

Windows SharePoint Services 3

An enumerated list of options that are used to control settings that relate to default content types and content type views.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

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

[FlagsAttribute]
public enum SPAddFieldOptions

Member nameDescription
DefaultSet to a constant decimal value of 0. Used to specify whether a new field must not be added to any other content type. (Same as AddToDefaultContentType.)
AddToDefaultContentTypeSet to a constant decimal value of 1. Used to specify whether a new field that is added to the list must also be added to the default content type in the site collection.
AddToNoContentTypeSet to a constant decimal value of 2. Used to specify whether a new field must not be added to any other content type.
AddToAllContentTypesSet to a constant decimal value of 4. Used to specify whether a new field that is added to the specified list must also be added to all content types in the site collection.
AddFieldInternalNameHintSet to a constant decimal value of 8. Used to add an internal field name hint for the purpose of avoiding possible database locking or field renaming operations.
AddFieldToDefaultViewSet to a constant decimal value of 16. Used to specify whether a new field that is added to the specified list must also be added to the default list view.
AddFieldCheckDisplayNameSet to a constant decimal value of 32. Used to confirm that no other field has the same display name.

Community Additions

ADD
Show:
© 2015 Microsoft