다음을 통해 공유


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

Syntax

'Declaration
<ClientCallableAttribute> _
Public Overrides WriteOnly Property Indexed As Boolean
    Set
'Usage
Dim instance As SPFieldLookup
Dim value As Boolean

instance.Indexed = value
[ClientCallableAttribute]
public override bool Indexed { set; }

Property Value

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

Exceptions

Exception Condition
SPException

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

See Also

Reference

SPFieldLookup Class

SPFieldLookup Members

Microsoft.SharePoint Namespace

IsDependentLookup

RelationshipDeleteBehavior