Share via


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Function Add ( _
    field As SPField _
) As String
'Usage
Dim instance As SPFieldCollection
Dim field As SPField
Dim returnValue As String

returnValue = instance.Add(field)
public string Add(
    SPField field
)

Parameters

Return Value

Type: System.String
A string that contains the internal name of the new field.

See Also

Reference

SPFieldCollection Class

SPFieldCollection Members

Add Overload

Microsoft.SharePoint Namespace