ContentIterator.ListHasItemsOfContentTypeOrChild method
Namespace: Microsoft.Office.Server.Utilities
Assembly: Microsoft.Office.Server (in Microsoft.Office.Server.dll)
Syntax
'Declaration
Public Shared Function ListHasItemsOfContentTypeOrChild ( _
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.ListHasItemsOfContentTypeOrChild(list, _
strContentTypeId, folder, fRecursive)
public static bool ListHasItemsOfContentTypeOrChild(
SPList list,
string strContentTypeId,
SPFolder folder,
bool fRecursive
)
Parameters
- list
Type: Microsoft.SharePoint.SPList
- strContentTypeId
Type: System.String
- folder
Type: Microsoft.SharePoint.SPFolder
- fRecursive
Type: System.Boolean
Return value
Type: System.Boolean