다음을 통해 공유


SP.AddFieldOptions Enumeration

Applies to: SharePoint Foundation 2010

Specifies the control settings while adding a field.

Values

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.

See Also

Reference

SP Namespace