次の方法で共有


SPAddFieldOptions Enumeration

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)

Syntax

<FlagsAttribute> _
Public Enumeration SPAddFieldOptions

Dim instance As SPAddFieldOptions
[FlagsAttribute]
public enum SPAddFieldOptions

Members

Member name Description
Default Set 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.)
AddToDefaultContentType Set 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.
AddToNoContentType Set to a constant decimal value of 2. Used to specify whether a new field must not be added to any other content type.
AddToAllContentTypes Set 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.
AddFieldInternalNameHint Set 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.
AddFieldToDefaultView Set 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.
AddFieldCheckDisplayName Set to a constant decimal value of 32. Used to confirm that no other field has the same display name.

See Also

Reference

Microsoft.SharePoint Namespace