Share via


SPFieldCollection.Add method

Creates a field in the collection.

Overload list

  Name Description
Public method Add(SPField) Adds a field to the collection based on the specified field.
Public method Add(String, SPFieldType, Boolean) Creates a field in the collection based on the specified display name, field type, and Boolean value.
Public method Add(String, SPFieldType, Boolean, Boolean, StringCollection) Creates a field in the collection based on the specified display name, field type, Boolean values for other field properties, and choices in the case of a Choice field.

Top

See also

Reference

SPFieldCollection class

SPFieldCollection members

Microsoft.SharePoint namespace