Share via


FieldLinkCollection.Add method

Adds a content type field reference to the collection.

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

Syntax

'Declaration
Public Function Add ( _
    parameters As FieldLinkCreationInformation _
) As FieldLink
'Usage
Dim instance As FieldLinkCollection
Dim parameters As FieldLinkCreationInformation
Dim returnValue As FieldLink

returnValue = instance.Add(parameters)
public FieldLink Add(
    FieldLinkCreationInformation parameters
)

Parameters

Return value

Type: Microsoft.SharePoint.Client.FieldLink
A FieldLink object that represents the field reference.

Exceptions

Exception Condition
SPException

The referred to field cannot be found, a duplicate field name was found, the field does not have a display name, or this field collection is not associated with a list. Error code: -2146232832.

See also

Reference

FieldLinkCollection class

FieldLinkCollection members

Microsoft.SharePoint.Client namespace