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
parameters
Type: Microsoft.SharePoint.Client.FieldLinkCreationInformationA FieldLinkCreationInformation object that contains information about the field reference.
It must not be null.
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. |