ContentIterator.EnsureFieldIndexed Method
Ensures that the field is indexed for a list.
Namespace: Microsoft.Office.Server.Utilities
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.dll)
Syntax
'Declaration
Public Shared Function EnsureFieldIndexed ( _
list As SPList, _
fieldId As Guid _
) As Nullable(Of Boolean)
'Usage
Dim list As SPList
Dim fieldId As Guid
Dim returnValue As Nullable(Of Boolean)
returnValue = ContentIterator.EnsureFieldIndexed(list, _
fieldId)
public static Nullable<bool> EnsureFieldIndexed(
SPList list,
Guid fieldId
)
Parameters
- list
Type: Microsoft.SharePoint.SPList
SPList.
- fieldId
Type: System.Guid
The ID of the field.
Return Value
Type: System.Nullable<Boolean>
Returns Nullable<T>.
Remarks
Returns a null reference (Nothing in Visual Basic) if the field was already indexed; true if the field was previously not indexed but has now been indexed, false if the list was previously not indexed and has now been indexed (which is only possible for overloads of this method that defer index creation).