Share via


ContentIterator.ListHasItemsOfContentTypeId method

Namespace:  Microsoft.Office.Server.Utilities
Assembly:  Microsoft.Office.Server (in Microsoft.Office.Server.dll)

Syntax

'Declaration
Public Shared Function ListHasItemsOfContentTypeId ( _
    list As SPList, _
    strContentTypeId As String, _
    folder As SPFolder, _
    fRecursive As Boolean _
) As Boolean
'Usage
Dim list As SPList
Dim strContentTypeId As String
Dim folder As SPFolder
Dim fRecursive As Boolean
Dim returnValue As Boolean

returnValue = ContentIterator.ListHasItemsOfContentTypeId(list, _
    strContentTypeId, folder, fRecursive)
public static bool ListHasItemsOfContentTypeId(
    SPList list,
    string strContentTypeId,
    SPFolder folder,
    bool fRecursive
)

Parameters

Return value

Type: System.Boolean

See also

Reference

ContentIterator class

ContentIterator members

Microsoft.Office.Server.Utilities namespace