Compartilhar via


FieldLinkCollection.Add Method

Adds a content type field reference to the collection.

Namespace:  Microsoft.SharePoint.Client
Assemblies:   Microsoft.SharePoint.Client.Silverlight (in Microsoft.SharePoint.Client.Silverlight.dll);  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
<RemoteAttribute> _
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)
[RemoteAttribute]
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