SPFieldLookup.Indexed Property

Sets a Boolean value that specifies whether the field is indexed.

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

public override bool Indexed { set; }

Property Value

Type: System.Boolean
true to specify that the field is indexed; otherwise, false.


You attempted to set the property on a dependent field. Indexing is not available for dependent (or secondary) fields.