SPRelatedField.LookupList Property

Gets the SPList object that a lookup field identifies as its target (or parent) list.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
<ClientCallableConstraintAttribute(Type := ClientCallableConstraintType.NotNull)> _
<ClientCallableAttribute> _
Public ReadOnly Property LookupList As SPList
    Get
'Usage
Dim instance As SPRelatedField
Dim value As SPList

value = instance.LookupList
[ClientCallableConstraintAttribute(Type = ClientCallableConstraintType.NotNull)]
[ClientCallableAttribute]
public SPList LookupList { get; }

Property Value

Type: Microsoft.SharePoint.SPList
The list that is the target of a lookup field in another list.

Remarks

If the current SPRelatedField object is a member of an SPRelatedFieldCollection, then the value returned by the LookupList property is the same as the value returned by the collection object's SPRelatedFieldCollection.List property.

See Also

Reference

SPRelatedField Class

SPRelatedField Members

Microsoft.SharePoint Namespace

List

LookupList