共用方式為


SPField.Indexed property

取得或設定布林值,指定是否要建立欄位的索引。

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

Syntax

'宣告
Public Overridable Property Indexed As Boolean
    Get
    Set
'用途
Dim instance As SPField
Dim value As Boolean

value = instance.Indexed

instance.Indexed = value
public virtual bool Indexed { get; set; }

Property value

Type: System.Boolean
若要指定的欄位具有索引 ; true否則,請false。

請參閱

參照

SPField class

SPField members

Microsoft.SharePoint namespace