This documentation is archived and is not being maintained.

SPFieldCollection.Add Method (SPField)

Windows SharePoint Services 3

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

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

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

returnValue = instance.Add(field)


Type: Microsoft.SharePoint.SPField
An SPField object that represents the field.

Return Value

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