Export (0) Print
Expand All

SPFieldCollection.Add method (SPField)

Adds a field to the collection based on the specified field.

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

public string Add(
	SPField field
)

Parameters

field
Type: Microsoft.SharePoint.SPField

An SPField object that represents the field.

Return value

Type: System.String
A string that contains the internal name of the new field.
Show:
© 2014 Microsoft