FieldLookup.LookupList property

Gets or sets a value that specifies the list identifier of the list that contains the field to use as the lookup values.

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

Syntax

'Declaration
Public Property LookupList As String
    Get
    Set
'Usage
Dim instance As FieldLookup
Dim value As String

value = instance.LookupList

instance.LookupList = value
public string LookupList { get; set; }

Property value

Type: System.String
Returns a String instance representing the list identifier of the list that contains the field to use as the lookup values.

Exceptions

Exception Condition
[Microsoft.SharePoint.SPException]

Thrown when attempting to change the value after this property was previously set or the server does not allow properties of the field to be changed. Error code: -2146232832.

[System.NotSupportedException]

When the property is read and the list that this field belongs to is an external list. Error code: -1.

Remarks

This property returns the string representation of the source list's ID() property. The LookupList property is set automatically when you create an FieldLookup object by calling the AddLookup(String, Guid, Boolean) or AddDependentLookup(String, Guid) method of the FieldCollection object that represents the field collection for the list where you want to add the lookup column.

Important

Once a lookup column is established, the target list cannot be changed.

See also

Reference

FieldLookup class

FieldLookup members

Microsoft.SharePoint.Client namespace