Compartilhar via


ContentIterator.EnsureContentTypeIndexed Method

Ensures that the ContentTypeId 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 EnsureContentTypeIndexed ( _
    list As SPList _
) As Nullable(Of Boolean)
'Usage
Dim list As SPList
Dim returnValue As Nullable(Of Boolean)

returnValue = ContentIterator.EnsureContentTypeIndexed(list)
public static Nullable<bool> EnsureContentTypeIndexed(
    SPList list
)

Parameters

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).

See Also

Reference

ContentIterator Class

ContentIterator Members

Microsoft.Office.Server.Utilities Namespace